Create REST APIs

  1. Login to the Publisher Console ( of the WSO2 API Manager.
  2. Click on the REST API button and then use Import Open API option.
  3. Provide the OpenAPI definition of the API and click Next. Select OpenAPI URL and provide as the URL. Click Next.
  4. Edit the information as given below and click Create.
Field Sample value
Name SwaggerPetstore
Context /petstore
Version 1.0.0
  1. Navigate to the Deploy section and click Deployments.
  2. Click Deploy New Revision.
  3. Optionally, provide a description for the revision.
  4. Select the APK Gateways in which you want to deploy the API and click Deploy.
  5. Navigate to Life Cycle tab. Then click Publish to publish the API.
  6. To verify the API deployment in the APK Gateway, execute the following command. You will see the status of the deployed apis as follows once completed.
   kubectl get apis -n apk