API Management

How to add a new API?#

  1. Click on Studio, go to API tab. On the API tab, click on + Create new API button.

Create new API

  1. Enter an API name. API names are alpha-numeric names in Camel Case and we can not have multiple APIs with the same name. The joke API used below returns a joke with a punchline in the GET request.

Add joke API

  1. Once added, you can test the API by hitting Send button. If the API is correctly added and the endpoint works, you should be able to see a sample response as below.

API Response

  1. Don't forget to click on save button on the bottom left corner, otherwise you won't get a joke. Now you may laugh! 😆

How to import(CURL) a new API?#

  1. Click on Studio, go to API tab. On the API tab, click on + Import API button.

API

  1. If you have already added API’s to the API section and if you wish to import a new API, Please click on the arrow icon on the top left of the screen ->Import

API

  1. Mention the type of API you wish to import and add the CURL as well as enter an API name. API names are alpha-numeric names in Camel Case and we can not have multiple APIs with the same name.

API

  1. Don't forget to click on Import button on the bottom right corner.