Creating APIs

Create an API by using a file, URL, or by providing the source content.

Before you begin

Make sure that you have the file, URL, or the specification for creating the API.

About this task

Developer Portal supports the publishing of OData APIs from provider applications such as API Gateway. However, you cannot create OData APIs in Developer Portal by providing a specification.

Procedure

  1. Expand the menu options, click Manage, and click Assets.
  2. Click Add API.
  3. Provide a Name for the API in the field.
    If you do not provide a name, then the system names the API based on the specification that is used to create the API.
  4. Select the Type of specification based on the API type.
    • Open API . To create a REST API by using an Open API specification.
    • RAML. To create a REST API by using a RAML specification.
    • WSDL. To create a SOAP API by using a WSDL specification.
    • AsyncAPI. To create an Async API by using an AsyncAPI specification.
  5. Select a Provide from the drop-down.
  6. Select the Community to which the API is created.
    All APIs are published to the public community, by default. Hence, if you do not want to publish the API to the public community, remove the Public Community entry from the list by clicking the delete icon.
  7. From the Import with field, select the type of specification you want to provide. The available options are:
    • File. To create API from a file. Click Browse and select a file.
    • URL. To provide an URL that includes the API specification.
    • Content. To create API from the specified content. Provide the parser content using which the API must be created. Make sure that the content does not have references to external files.
  8. Click Create.
    The API is created. You can view the API from the Asset gallery page and the Manage APIs page.

What to do next