-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.http
62 lines (45 loc) · 1.05 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
###
#
# Browse Books
#
GET http://localhost:4004/odata/v4/catalog/Books?
# &$select=title,stock
# &$expand=currency
# &sap-language=de
###
#
# Get Author wit ID 101
#
GET http://localhost:4004/odata/v4/catalog/Authors(101)
###
#
# Update Author with ID 101
#
POST http://localhost:4004/odata/v4/catalog/Authors
Content-Type: application/json
{"ID": 101, "name": "Some Author"}
###
#
# Order a Book
#
POST http://localhost:4004/odata/v4/catalog/Orders
Content-Type: application/json;IEEE754Compatible=true
{"book_ID": 201, "amount": 5}
###
GET http://localhost:4004/odata/v4/catalog/Events
###
POST http://localhost:4004/odata/v4/catalog/Users
Content-Type: application/json
{"name": "Some User"}
###
GET http://localhost:4004/odata/v4/catalog/Users
###
DELETE http://localhost:4004/odata/v4/catalog/Users(xx)
###
GET http://localhost:4004/odata/v4/catalog/Feedback
###
POST http://localhost:4004/odata/v4/catalog/Feedback
###
POST http://localhost:4004/odata/v4/catalog/PasswordReset
Content-Type: application/json
{"userEmail": "[email protected] "}