Add Resources and Methods
You use the Resources and Methods profile to add the REST resources and methods for the Virtual REST API.
If you do not want to add the REST resources and methods manually, CentraSite provides the REST importer that reads a RAML or Swagger input file and automatically adds the resources and methods to the Virtual REST API. For information about using REST importers, see Working with REST-based APIs in CentraSite.
1. In the actions bar of the Virtual REST API, click the Edit icon.
2. Click the Resource and Methods profile.
3. Click on the Add Resource link.
4. In the Add Resource dialog box, complete the fields as necessary. For information about adding a REST resource, see Working with REST-based APIs in CentraSite.
5. Expand the resource node to that you want to add a HTTP method.
6. Click on the Add Method link.
7. In the Add Method dialog box, complete the fields as necessary. For information about adding a REST method, see Working with REST-based APIs in CentraSite.
8. Click Save to save the details.