From 1fd12b8cd428e9cd7da42b2c52ec2a9b78ca2b23 Mon Sep 17 00:00:00 2001 From: MelissaFlinn <31925014+MelissaFlinn@users.noreply.github.com> Date: Fri, 10 Aug 2018 08:21:06 -0400 Subject: [PATCH] doc edit https://issues.jboss.org/browse/FUSEDOC-2619 --- .../META-INF/resources/rest-http-index.html | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/main/resources/META-INF/resources/rest-http-index.html b/src/main/resources/META-INF/resources/rest-http-index.html index 2fbcb6f..2a406da 100644 --- a/src/main/resources/META-INF/resources/rest-http-index.html +++ b/src/main/resources/META-INF/resources/rest-http-index.html @@ -1,31 +1,52 @@ - + + Rest Http Mission - Red Hat Fuse + REST HTTP Mission - Red Hat Fuse - + integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" +@@ -11,18 +11,20 @@ +
+
+

Rest Http Mission - Red Hat Fuse

+

REST HTTP Mission - Red Hat Fuse

+

The REST API Level 0 mission shows how to map business operations to a remote procedure call endpoint over HTTP using a REST framework. This corresponds to Level 0 in the Richardson Maturity Model. + The REST API Level 0 mission shows 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. Creating an HTTP endpoint using REST and its underlying principles to define your API lets you quickly prototype and design the API flexibly. + By using this Fuse booster, you can implement this mission by quickly prototyping and flexibly designing your REST API. +

+

This booster introduces the mechanics of interacting with a remote (exposed by Apache Camel) service using the HTTP protocol. It allows you to: + 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 camel/greetings/{name} endpoint:
Execute an HTTP GET request on camel/greetings/{name} endpoint:
camel/greetings/{name} this uses the url parameter {name} and produce a response in JSON format with a payload of Hello, $name! with $name replaced by the value of the url parameter used into the request.
+
camel/greetings/{name} by using the URL parameter {name}
Browse the api's Swagger page:
+
Produce a response in JSON format with a payload of Hello, $name!
Api Swagger page this displays the swagger-ui for the rest api.
+
where $name is replaced by the value of the URL parameter from the HTTP GET request.
+
Browse the API's Swagger page:
+
API Swagger page This page displays the Swagger UI for the REST API.
+

+

+
-
- -