This article contains a SmartDocs JSON file, sdapigee.rev1.json, that you can use to create a SmartDocs model on your portal for the Edge management API.
By default, the Edge management APIs in sdapigee.rev1.json use a baseUrl of https://api.enterprise.apigee.com/v1, which means all requests go to the Cloud version of Edge. If you want to make requests to a different URL, edit the bastURL property of the sdapigee.rev1.json file, line 4, to set it.
The Edge management APIs all require basic auth. When you create the model, you add a security scheme to the model to support basic auth.
To create a model on your portal to use the Edge management APIs:
- Download the attached file, sdapigee.rev1.json.zip, and unzip it to create the file sdapigee.rev1.json.
- Select Content > SmartDocs in the portal.
- Select New Model and enter the name of the model. For example, sdapigee.
- Select Create Model. The model details page opens.
- On the model details page, select Import under Operations.
- On the import page:
- Select SmartDocs - JSON as the Format.
- Set Upload Type as File.
- Select the Choose File button and select the sdapigee.rev1.json file.
- Select Import to create Revision 1 of the model. You should see all Edge management APIs in the model as unpublished.
- In the dropdown at the top of the page, select Security Settings.
- On the Security Settings page, select Add Security Scheme.
- On the Add Security Scheme page:
- Set the Name to basic-auth.
- Set the Type to Basic.
- Select Submit to create the security scheme.
- At the top of the page, select Revision #1 in the breadcrumbs above the page title to return to the list of APIs.
- Select an API and publish it. For example:
- Select the Get Organization API.
- Make sure the dropdown at the top of the page says Render and publish nodes.
- Select the Update button to publish the API page.
- Scroll down to the Get Organization API. You now see a Node ID (NID) for the API under the Node Association column.
- Select the Node ID to open the API page in the portal. You can now make API requests from that page.