Workflow Samples

HTTP Backend API

HTTP Post Users API

This is an example of a workflow that demonstrates the following features:

  • Responding to inbound HTTP POST requests that include a JSON body.
  • Returning the received JSON payload as a JSON response.
  • Using variables.
  • Using expressions.

http-post-users-api.json

Sample CURL:

curl --location 'https://localhost:5001/workflows/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"email": "bob@acme.com",
"name": "Bob Jones"
}'

Sample response:

{
    "id": 1,
    "email": "bob@acme.com",
    "name": "Bob Jones"
}
Previous
HTTP - Backend API