Workflow Samples

HTTP Backend API

HTTP Backend API

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

  • Responding to inbound HTTP requests.
  • Making HTTP requests to a backend API.
  • Returning JSON responses.
  • Using variables.
  • Using expressions.
  • Using route parameters.

http-backend-api.json

Sample CURL:

curl --location 'https://localhost:5001/workflows/users/2'

Sample response:

{
  "id": 2,
  "email": "janet.weaver@reqres.in",
  "first_name": "Janet",
  "last_name": "Weaver",
  "avatar": "https://reqres.in/img/faces/2-image.jpg"
}
Previous
HTTP - Hello World