-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
48 lines (41 loc) · 886 Bytes
/
api.http
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
45
46
47
48
GET http://localhost:8080/api/courses
###
GET http://localhost:8080/api/courses?page=0&pageSize=100
###
GET http://localhost:8080/api/courses/abc
###
POST http://localhost:8080/api/courses HTTP/1.1
content-type: application/json
{
"name": "Angular",
"category": "Front-end",
"lessons": [
{
"name": "Introdução",
"youtubeUrl": "tPOMG0D57S0"
},
{
"name": "Introdução2",
"youtubeUrl": "tPOMG0D57S0"
}
]
}
###
PUT http://localhost:8080/api/courses/-1 HTTP/1.1
content-type: application/json
{
"name": "Angular com Spring",
"category": "Back-end",
"lessons": [
{
"id": 1,
"name": "Introdução11111",
"youtubeUrl": "01234567890"
},
{
"id": 2,
"name": "Angular11111",
"youtubeUrl": "01234567891"
}
]
}