<dependency> <groupId>org.mule.modules</groupId> <artifactId>mule-apikit-module</artifactId> <version>LATEST_VERSION</version> (1) <classifier>mule-plugin</classifier> </dependency>
APIkit for REST Module Reference
Configure the APIkit for REST module in Mule: declare the Maven dependency, add apikit:config, and place the apikit:router and optional console and flow mappings in your XML. This reference lists dependency coordinates, namespaces, schema locations, and element attributes you use when you implement or troubleshoot REST APIs.
APIkit for REST Dependency Information
| 1 | Check APIkit release notes to get the LATEST_VERSION. |
APIkit for REST Configuration and Operations
| Element Name | Description | Required |
|---|---|---|
|
APIkit configuration |
Yes |
|
Property of |
No |
|
Container for one or more |
No |
|
Maps a resource and action from the API specification to a specific Mule flow |
No |
|
REST routing message processor nested in the flow element |
Yes |
apikit:config Attributes
The apikit:config attributes are of type NonBlankString.
| Attribute Name | Required | Description |
|---|---|---|
|
No |
Name of the map that contains response headers. |
|
No |
Name of the variable that stores the HTTP status code in the response. |
|
No |
Alias for the equivalent This attribute is deprecated as of version APIkit 1.2.0. Included to provide compatibility with APIkit 1.1.x. |
|
Yes |
Configuration name that other elements, such as |
|
Yes |
Alias for the equivalent This attribute is deprecated as of version APIkit 1.2.0. Included to provide compatibility with APIkit 1.1.x. |
|
No |
Parser used to validate requests. Attribute valid for APIkit 1.2.0 and later. Possible values are:
Default Value: AUTO. |
|
No |
Root API file location. This attribute is valid for APIkit 1.2.0 and later. The |
|
No |
Attribute valid for APIkit 1.2.0 and later. When set to |
If you use APIkit behind a reverse proxy and set keepRamlBaseUri to true, use API Console to put the URL of a proxy in the baseUri property.
apikit:router Attributes
| Attribute Name | Required | Description |
|---|---|---|
|
No |
Disables validations of requests. |
|
No |
Validates that request headers are defined in the RAML file or belong to a well-known set of headers. |
|
No |
Validates that request query parameters are defined in the RAML file. |
apikit:flow-mapping Attributes
Use the apikit:flow-mapping element to route a resource and action defined in the API specification (RAML or OpenAPI specification) to an existing Mule flow.
| Attribute Name | Required | Description |
|---|---|---|
|
Yes |
Resource path from the API specification to map, for example |
|
Yes |
HTTP method to map for the resource, for example |
|
Yes |
Name of the Mule flow that handles the mapped resource and action. |
|
No |
Request media type to match, for example |
In APIkit configuration, nest apikit:flow-mapping in apikit:flow-mappings, and nest apikit:flow-mappings in apikit:config.
<apikit:config name="api-config" api="api/api.raml">
<apikit:flow-mappings>
<apikit:flow-mapping resource="/orders" action="post"
content-type="application/json"
flow-ref="process-json-order"/>
<apikit:flow-mapping resource="/orders" action="post"
content-type="application/xml"
flow-ref="process-xml-order"/>
</apikit:flow-mappings>
</apikit:config>
APIkit for REST Namespace and Schema
xmlns:apikit="http://www.mulesoft.org/schema/mule/mule-apikit" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/mule-apikit http://www.mulesoft.org/schema/mule/mule-apikit/current/mule-apikit.xsd"
APIkit for REST System Properties
| System Property | Default | Description | Since |
|---|---|---|---|
|
false |
Allows parser to expand XML external entities. The default value is |
1.3.7 |
|
false |
Allows parser to expand XML internal entities. The default value is |
1.3.7 |
|
false |
Disables console. |
1.3.7 |
|
true |
Streams AMF parser model to the console. |
1.5.0 |
|
false |
Fails when there is a |
1.1.15 |
|
true |
Checks no duplicate JSON object field names are encountered when the RAML parser is configured. |
1.1.15 |
|
true |
Blocks the use of unsafe base types when the RAML parser is configured. |
1.5.0 |
|
AUTO |
Overrides parser type. Possible values are:
|
1.3.7 |
|
268435456 |
Limits the size of the multipart payload to be validated by throwing |
1.8.0 |
|
localhost |
Overrides the console URL. |
1.1.15 |



