-
Notifications
You must be signed in to change notification settings - Fork 1
/
manual.txt
44 lines (33 loc) · 967 Bytes
/
manual.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use Postman,
for POST API, setting header: X-Requested-By: local
POST /api/brand/create HTTP/1.1
Host: 127.0.0.1:8080
Content-Type: application/json
X-Requested-By: local
Cache-Control: no-cache
Postman-Token: dabb85c9-4b5f-0ddb-fa73-d7f89daa9609
{
"name": "Toyota",
"creator": "runjia",
"business": "Cars",
"headQuarter": "Guangzhou"
}
POST /api/shop/create HTTP/1.1
Host: 127.0.0.1:8080
X-Requested-By: local
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: 3c51c8a0-6788-ad9e-f54f-1c973b7ba132
{
"name": "tongyong Shanghai pudong",
"address": "pudong sh road 123 no",
"manager": "runjia",
"brand": { "id" : "11" }
}
http://127.0.0.1:8080/api/brand/query/2
http://127.0.0.1:8080/api/shop/query/1
http://127.0.0.1:8080/api/swagger.json
http://127.0.0.1:8080/test/display
build.gradle provides predefined tasks:
(1) convertSwagger2markup, genetate Asciioc file;
(2) asciidoctor, convert AsciiDoc to html5 & pdf;