Grouping APIs with Microgateway Labels¶
If required, you can create a WSO2 API Microgateway distribution for a group of APIs. Therefore, if you need to group APIs in order to import it later into the WSO2 Microgateway, you need to create a Microgateway label and add the label to the respective APIs that belong to the group.
For more information on WSO2 API Microgateway, see API Microgateway Documentation.
Step 1 - Create a Microgateway label¶
Sign in to the Admin Portal.
adminas your username and password to sign in.
Add a new Microgateway label.
Click LABELS under MICROGATEWAY, and then click ADD MICROGATEWAY.
Create a new label, add a host, and click Save.
Label MARKETING_STORE Host
Step 2 - Assign the Microgateway label to an API¶
Repeat this step if you wish to add multiple APIs to the API group.
Sign in to the API Publisher using
adminas the username and password.
Create a new API or skip this step if you wish to use an existing API. Let's deploy the sample Pizzashack API by clicking Deploy Sample API (If you have not done so already).
Click on the API to edit its configurations.
Select the newly created Microgateway label.
Click Save to attach it to the Pizzashack API.
Similarly, you can assign the
MARKETING_STOREMicrogateway label for other APIs as well.
Step 3 - View the Microgateway labels¶
Sign in to the Developer Portal using
admin as the username and password.
The attached Microgateways appear in the Overview tab of the API.Top