Create REST APIs
- Login to the Publisher Console (https://am.wso2.com/publisher) of the WSO2 API Manager.
- Click on the
REST API
button and then useImport Open API
option. - Provide the OpenAPI definition of the API and click
Next
. Select OpenAPI URL and providehttps://petstore3.swagger.io/api/v3/openapi.json
as the URL. Click Next. - Edit the information as given below and click Create.
Field | Sample value |
---|---|
Name | SwaggerPetstore |
Context | /petstore |
Version | 1.0.0 |
Endpoint | https://petstore3.swagger.io/api/v3 |
- Navigate to the Deploy section and click Deployments.
- Click Deploy New Revision.
- Optionally, provide a description for the revision.
- Select the APK Gateways in which you want to deploy the API and click Deploy.
- Navigate to Life Cycle tab. Then click Publish to publish the API.
- 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