2021-08-07
This commit is contained in:
4
rest-doc/target/snippets/home/curl-request.adoc
Normal file
4
rest-doc/target/snippets/home/curl-request.adoc
Normal file
@@ -0,0 +1,4 @@
|
||||
[source,bash]
|
||||
----
|
||||
$ curl 'http://localhost:8080/name/Charlie' -i -X GET
|
||||
----
|
||||
6
rest-doc/target/snippets/home/http-request.adoc
Normal file
6
rest-doc/target/snippets/home/http-request.adoc
Normal file
@@ -0,0 +1,6 @@
|
||||
[source,http,options="nowrap"]
|
||||
----
|
||||
GET /name/Charlie HTTP/1.1
|
||||
Host: localhost:8080
|
||||
|
||||
----
|
||||
8
rest-doc/target/snippets/home/http-response.adoc
Normal file
8
rest-doc/target/snippets/home/http-response.adoc
Normal file
@@ -0,0 +1,8 @@
|
||||
[source,http,options="nowrap"]
|
||||
----
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: application/json
|
||||
Content-Length: 27
|
||||
|
||||
{"name":"Charlie","age":11}
|
||||
----
|
||||
4
rest-doc/target/snippets/home/httpie-request.adoc
Normal file
4
rest-doc/target/snippets/home/httpie-request.adoc
Normal file
@@ -0,0 +1,4 @@
|
||||
[source,bash]
|
||||
----
|
||||
$ http GET 'http://localhost:8080/name/Charlie'
|
||||
----
|
||||
4
rest-doc/target/snippets/home/request-body.adoc
Normal file
4
rest-doc/target/snippets/home/request-body.adoc
Normal file
@@ -0,0 +1,4 @@
|
||||
[source,options="nowrap"]
|
||||
----
|
||||
|
||||
----
|
||||
4
rest-doc/target/snippets/home/response-body.adoc
Normal file
4
rest-doc/target/snippets/home/response-body.adoc
Normal file
@@ -0,0 +1,4 @@
|
||||
[source,options="nowrap"]
|
||||
----
|
||||
{"name":"Charlie","age":11}
|
||||
----
|
||||
12
rest-doc/target/snippets/home/response-fields.adoc
Normal file
12
rest-doc/target/snippets/home/response-fields.adoc
Normal file
@@ -0,0 +1,12 @@
|
||||
|===
|
||||
|Path|Type|Description
|
||||
|
||||
|`+name+`
|
||||
|`+String+`
|
||||
|Name...
|
||||
|
||||
|`+age+`
|
||||
|`+Number+`
|
||||
|Age...
|
||||
|
||||
|===
|
||||
Reference in New Issue
Block a user