-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerated-requests.http
More file actions
74 lines (52 loc) · 2.49 KB
/
Copy pathgenerated-requests.http
File metadata and controls
74 lines (52 loc) · 2.49 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
### read collection of sections
GET http://localhost:8082/api/sections
### fsgsg
GET http://localhost:8082/api/sections
### read section
GET http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec
### delete section
DELETE http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec
### create section
PUT http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec
Content-Type: application/json
{
"name": "String",
"volume": 5,
"location": 1
}
### read all instruments
GET http://localhost:8083/api/instruments
### read all instruments from a section
GET http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments
### read an instrument
GET http://localhost:8083/api/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
### read an instrument from a section
GET http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
### delete an instrument
DELETE http://localhost:8083/api/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
### delete an instrument from a section
DELETE http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
### create an instrument
PUT http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
Content-Type: application/json
{
"name": "violin",
"production_year": 1850
}
### read the new instrument from a section
GET http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments/ec01d9e4-0000-0000-0000-0000ec01d9e4
### read all instruments from an empty section 204
GET http://localhost:8083/api/sections/ff05ec9a-0000-0000-0000-0000ff05ec9a/instruments
### read all instruments from a non-existing section 404
GET http://localhost:8083/api/sections/7705ec9a-0000-0000-0000-0000ff05ec99/instruments
### create an instrument in a non-existing section
PUT http://localhost:8083/api/sections/7705ec9a-0000-0000-0000-0000ff05ec99/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
Content-Type: application/json
{
"name": "violin",
"production_year": 1850
}
### delete an instrument from a non-existing section
DELETE http://localhost:8083/api/sections/7705ec9a-0000-0000-0000-0000ff05ec99/instruments/c2c53a23-0000-0000-0000-0000c2c53a23
### delete a non-existing instrument from a section
DELETE http://localhost:8083/api/sections/6ed878ec-0000-0000-0000-00006ed878ec/instruments/c3fe24aa-0000-0000-0000-0000c3fe24aa