To Consume a REST Service (Jul 2017)

This procedure assumes you set up an API, designed an API, and then simulated calling the API. Instead of simulating the API, you can get the actual data from the a service, for example JSONPlaceholder instead of the example data in your user-example.json include file.

  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 to get the actual user list:

The actual user list from the JSONplaceholder site appears.

In this topic: