To Implement the Endpoint

After simulating calls to the API, follow this procedure to see an example of preparing an API for release. Modify and add flows that return actual data from the JSON Placeholder site instead of the data from RAML examples. Modify the users flow to get actual data from the Json Placeholder site.

  1. Drag an HTTP Listener component from the Mule palette to the Source section of the get:/users:api-config flow.

    source section
  2. In the properties editor of Listener, in Connector Configuration, select api-httpListenerConfig.

    apikit edit listener

    Click Edit-16x16 and click OK to accept the default host and port 8081.

  3. In the properties editor of Listener, in General, type /placeholder in Path.

  4. Drag an HTTP Request component to the right of Transform.

  5. In Connector Configuration of the Request, click Add-16x16.

    The HTTP Request Configuration appears.

  6. Set the following HTTP Request Configuration options:

    • Accept the default Name, HTTP_Request_Configuration.

    • Accept the default HTTP protocol.

    • Set Host to

    • Set Port to 80.

    • Accept the other defaults, and click OK.

  7. In the properties editor of Request, set the following options:

    • Method: Accept the default GET.

    • Path: /users

  8. Save changes.

Next, filter the list of users by ID.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Give us your feedback!
We want to build the best documentation experience for you!
Help us improve with your feedback.
Take the survey!