Skip to content
The MuleSoft APIKit router does a job similar to a physical router

APIKit Router – Study Notes

What is APIKit?

The APIKit router allows you to create (mainly) Mule Rest APIs. It also helps to route the requests to the proper flow of the Mule API.

In order to use the APIKit router you will need an API specification:

  • RAML (1.0 or 0.8)
  • OAS (Open API Specification)

How APIKit Router can help you?

The APIKit router will not only route the requests but can also validate the query params and the request headers.

The APIKit will generate a flow for each method of each path present in the API spec. For example, if you have an endpoint “/customer” with 3 methods: GET, UPDATE, DELETE, the APIKit router will generate for you 3 distinct flows: GET customer, UPDATE customer and DELETE customer.

The APIKit has another cool feature that is a must for any integration developer: the API Console. The API console allows you to simulate calls to the API in order to find potential problems and solve them in time. To use the console in an efficient manner, your API spec should contain status codes and response examples. Basically, a good Mulesoft API starts with a detailed and well-written API spec.

How to use the MuleSoft APIKit router?

Below are a few videos that will help you familiarize yourself with the APIKit router.

Photo by John Barkiple on Unsplash

Leave a Reply

Your email address will not be published. Required fields are marked *