Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Mule] Send parameters via API RAML
#
/user:
post:
description: Insert User
queryParameters:
name:
required: true
type: string
example: "Felipe Lima"
status:
required: true
type: boolean
example: 1
email:
required: true
type: string
example: "felipe.lima@arizona.com.br"
responses:
200:
body:
application/json:
example: |
{
"message" : "ok"
}
#receiving parametes in Mule Flow Via API
<flow name="post:/user:api-config">
<logger message="Create a User" level="INFO" doc:name="Logger"/>
<set-session-variable variableName="name" value="#[message.inboundProperties['http.query.params']['name']]" doc:name="name"/>
<set-session-variable variableName="status" value="#[message.inboundProperties['http.query.params']['status']]" doc:name="status"/>
<set-session-variable variableName="email" value="#[message.inboundProperties['http.query.params']['email']]" doc:name="email"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment