-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrest-api.http
More file actions
49 lines (33 loc) · 856 Bytes
/
Copy pathrest-api.http
File metadata and controls
49 lines (33 loc) · 856 Bytes
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
### Send POST request with json body
POST http://localhost:9090/questions
Content-Type: application/json
{
"title": "вопрос 5",
"description": "вопрос номер 5 в схеме stack"
}
### Send POST request with json body
POST http://localhost:9090/questions/4/comments
Content-Type: application/json
{
"comment": "тест коммент"
}
### Send DELETE request
DELETE http://localhost:9090/questions/2
Content-Type: application/json
### Send DELETE request
DELETE http://localhost:9090/questions/comments/9
Content-Type: application/json
### Send PUT request
PUT http://localhost:9090/questions/3
Content-Type: application/json
{
"title": "working3",
"description": "yes3"
}
### Send PUT request
PUT http://localhost:9090/questions/comments/9
Content-Type: application/json
{
"comment": "checking11111"
}
###