The REST API Level 0 mission shows how to map business operations to a remote procedure call endpoint over HTTP by using a REST framework. This mission corresponds to Level 0 in the Richardson Maturity Model.
By using this Fuse booster, you can implement this mission by quickly prototyping and flexibly designing your REST API.
By using this Fuse booster, you can quickly prototype and flexibly design a REST API.
This booster introduces the mechanics of interacting with a remote (exposed by Apache Camel) service using the HTTP protocol.
Use this booster to:
* Execute an HTTP GET request on the `camel/greetings/{name}` endpoint by using the URL parameter `{name}`
* Produce a response in JSON format with a payload of `Hello, $name!` (where `$name` is replaced by the value of the URL parameter from the HTTP GET request).
* Execute an HTTP GET request on the `camel/greetings/{name}` endpoint by using the URL parameter `{name}`. The JSON-formatted response has a payload of `Hello, $name!` (where `$name` is replaced by the value of the URL parameter from the HTTP GET request).
The REST API Level 0 mission demonstrates how to map business operations to a remote procedure call endpoint over HTTP using a REST framework. This mission corresponds to Level 0 in the Richardson Maturity Model.
</p>
<pclass="lead">
By using this Fuse booster, you can implement this mission to quickly prototype and flexibly design your REST API.
The REST API Level 0 booster demonstrates how to map business operations to a remote procedure call endpoint over HTTP using a REST framework. This mission corresponds to Level 0 in the Richardson Maturity Model.
</p>
<pclass="lead">
This booster introduces the mechanics of interacting with a remote (exposed by Apache Camel) service using the HTTP protocol.
</p>
<pclass="lead">
Use this booster to:
By using this Fuse booster, you can quickly prototype and flexibly design your REST API.
</p>
<pclass="lead">
To demonstrate the behavior of this booster:
<ulclass="lead">
<li>Execute an HTTP GET request on the <code>camel/greetings/{name}</code> endpoint:
<li>Produce a response in JSON format with a payload of <code>Hello, $name!</code>
where <code>$name</code> is replaced by the value of the <code>{name}</code> URL parameter from the HTTP GET request.</li>
<li>Browse the REST API's Swagger page: <aclass="btn btn-info"href="/webjars/swagger-ui/index.html?url=/camel/api-doc&validatorUrl="target="_blank">API Swagger page</a></li>
<li>Click <aclass="btn btn-info"href="/camel/greetings/Jacopo"target="_blank">camel/greetings/{name}</a> to execute an HTTP GET request on the <code>camel/greetings/{name}</code> endpoint.
<p>A new browser window opens and shows a response in JSON format with a payload of <code>Hello, $name!</code>
where <code>$name</code> is the value of the <code>{name}</code> URL parameter from the HTTP GET request. By default, this is <b>Jacopo</b>.</li>
<li>Change the name in the URL from <b>Jacopo</b> to your name. Observe that the response reflects the name change.</li>
</ul>
</p>
<pclass="lead">Click <aclass="btn btn-info"href="/webjars/swagger-ui/index.html?url=/camel/api-doc&validatorUrl="target="_blank">API Swagger page</a> to open the REST API's Swagger page.</p>