Contact Free trial Login

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 0.0.0.0 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 jsonplaceholder.typicode.com.

    • 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.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.