Contact Us 1-800-596-4880

To Consume a REST Service (API Manager)

This procedure assumes you set up an API, designed an API, and then simulated calling the API. Because you provided a baseURI in the RAML definition, you can get the actual data from the service, for example JSONPlaceholder instead of the example data in your user-example.json include file. You turn off the mocking service, which provides a mock implementation of the API, and use the actual baseURI.

  1. From the API Administration page, click the product version number.

  2. On the API version details page, click Edit API in API Designer.

  3. Turn off the mocking service in API Console.

  4. Save all files in the project.

  5. Configure a proxy and deploy the API to Cloudhub.

  6. Issue the following call in a browser to get the actual user list:

The actual user list from the JSONplaceholder site appears.

Alternatively, you can use Try It in API Console to get the actual user list.

View on GitHub