forked from thangchung/clean-architecture-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restclient.http
42 lines (35 loc) · 1020 Bytes
/
restclient.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
@host = http://localhost:5000
###
GET {{host}}/product-api/v1/products HTTP/1.1
content-type: {{contentType}}
x-query: {"filters":[{"fieldName": "Name", "comparision": "Contains", "fieldValue": "test"}],"sorts":["NameDesc"],"page":1,"pageSize":20}
###
@id = 23537dac-303f-446f-be2a-1dbea22b3eba
GET {{host}}/product-api/v1/products/{{id}} HTTP/1.1
content-type: {{contentType}}
###
@country-id = 18a4a8ae-3338-484a-a4ed-6e64d13d84dc
GET {{host}}/setting-api/v1/countries/{{country-id}} HTTP/1.1
content-type: {{contentType}}
###
POST {{host}}/product-api/v1/products HTTP/1.1
content-type: {{contentType}}
{
"model": {
"name": "test product {{$guid}}",
"quantity": 1,
"cost": 1000,
"productCodeName": "pcode"
}
}
###
POST {{host}}/customer-api/v1/customers HTTP/1.1
content-type: {{contentType}}
{
"model": {
"firstName": "firstName {{$guid}}",
"lastName": "lastName {{$guid}}",
"email": "email{{$guid}}@nomail.com",
"countryId": "18a4a8ae-3338-484a-a4ed-6e64d13d84dc"
}
}