forked from aspineon/spring-masterclass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.http
77 lines (52 loc) · 1.19 KB
/
client.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
POST http://localhost:8080/api/users
Content-Type: application/json
{
"firstName": "Jan",
"lastName": "Kowalski",
"emailAddress": "landrzejewski.poczta@gmail.com"
}
###
GET http://localhost:8080/api/users/not-active/1?token=bae6f440-ae2a-4a2c-bd36-9fb8572f02ea
###
GET http://localhost:8080/api/users/1
Accept: application/json
###
GET http://localhost:8080/api/users?lastNameFragment=Kow
Accept: application/json
###
POST http://localhost:8080/api/products
Content-Type: application/json
{
"name": "Microservices in practice (e-book)",
"description": "Book",
"price": "100.99 PLN",
"type": "EBOOK"
}
###
POST http://localhost:8080/api/orders
Content-Type: application/json
{
"products": [
{
"id": 1
}
]
}
###
GET http://localhost:8080/api/products
Accept: application/json
###
POST http://localhost:8080/api/products/1/files
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="pom.xml"
< ./pom.xml
--WebAppBoundary--
###
GET http://localhost:8080/api/exchange-rate?value=100%20PLN
Accept: application/json
###
POST http://localhost:8080/api/messages
Content-Type: text/plain
Hello
###