Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.26 KB

rest-route.md

File metadata and controls

42 lines (28 loc) · 1.26 KB

REST Route

From To Note
External provider RabbitMQ ingress exchange (WriterRoute) If valid payload
- RabbitMQ ingress-dl exchange if invalid payload
- RabbitMQ fastline exchange (FastlineRoute) If Provider URI requests fastline

rest-route

REST Route is the Camel Route responsible for listening to REST API calls on the perimeter.

Provider

REST Route listens to any POST request on a single port (by default 8080).

The path a provider uses to make requests is interpreted by the system as Provider URI for the data transported in the request body.

For example, executing the following request:

 curl -H 'Content-Type: application/json' \
      -d '{ "title":"foo","body":"bar", "id": 1}' \
      -X POST \
      https://localhost:8080/skidata/carezza/paolina?fastline=true

will result in the system associating to the request body the following Provider URI

skidata/carezza/paolina?fastline=true

To make REST requests we suggest using Insomnia or any other REST client.