Editing and Deleting APIs
The steps below explain how to modify an API's source code and delete an API.
Editing an API
You create an API using the API Publisher Web interface. To edit an API, you select the API in the API Publisher and then click the Edit link next to its name. Similarly, most common configurations of the APIs are facilitated through the Web UI.
The Edit link is only visible to users with creator privileges. See Managing Users and Roles.
However, if you want to do more advanced configurations to this API, you have to go into its code-level configurations. You can do this using the steps given below.
Log in to the Management Console UI (
https://localhost:9443/carbon
) usingadmin/admin
credentials. Then, select Source View sub menu under the Service Bus menu.
Source view contains the entire configuration of the API Gateway. You can find sequences, filters, properties, APIs etc. defined there. Search for the name of the API you want, and edit its content wrapped by the
<api></api>
elements.Click Update to save your changes.
- Restart the server.
Deleting an API
Follow the instructions below to delete an API from the API Store through the API Publisher Web interface.
- Log in to WSO2 API Publisher (
http://localhost:9763/publisher
) Web application with credentials of a user who has the creator role assigned. For more information on creating users and assigning roles, refer to section Managing Users and Roles. - The All APIs window opens.
- Click the Delete icon at the top right of a selected API to remove it, and confirm the deletion.
Once deleted, it will no longer be available in the API Store or the API Publisher.