-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.http
More file actions
47 lines (36 loc) · 834 Bytes
/
Copy pathrequests.http
File metadata and controls
47 lines (36 loc) · 834 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
45
46
47
###
GET http://localhost:8080/api/v1/resources
###
GET http://localhost:8080/api/v1/resources/2
###
POST http://localhost:8080/api/v1/resources
Content-Type: application/json
{
"name": "room1",
"description": "some description",
"capacity": 7
}
###
DELETE http://localhost:8080/api/v1/resources/3
###
GET http://localhost:8080/api/v1/reservations
###
GET http://localhost:8080/api/v1/reservations/1
###
POST http://localhost:8080/api/v1/reservations
Content-Type: application/json
{
"resourceId": 1,
"customerName": "John",
"startTime": "2026-02-02T10:30:00",
"endTime": "2026-02-02T11:30:00"
}
###
DELETE http://localhost:8080/api/v1/reservations/1
###
PUT http://localhost:8080/api/v1/reservations/1
Content-Type: application/json
{
"startTime": "2026-02-02T13:00:00",
"endTime": "2026-02-02T14:00:00"
}