-
Notifications
You must be signed in to change notification settings - Fork 0
/
API.http
31 lines (25 loc) · 1.28 KB
/
API.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
@baseUrl = https://localhost:7144
###################################################################################
### API [GET] Customers Find one #
GET {{baseUrl}}/api/customers/02ad7224-dd72-4d40-a794-55c5307cf33e HTTP/1.1
###################################################################################
### API [GET] Customers Find all #
GET {{baseUrl}}/api/customers HTTP/1.1
###################################################################################
### API [POST] Customers Create #
POST {{baseUrl}}/api/customers HTTP/1.1
Content-Type: application/json
{
"firstName": "John{{$randomInt 1000 9999}}",
"lastName": "Doe{{$randomInt 1000 9999}}",
"email": "john.doe{{$randomInt 1000 9999}}@example.com"
}
###################################################################################
### API [PUT] Customers Update #
PUT {{baseUrl}}/api/customers/02ad7224-dd72-4d40-a794-55c5307cf33e HTTP/1.1
Content-Type: application/json
{
"id": "02ad7224-dd72-4d40-a794-55c5307cf33e",
"firstName": "John{{$randomInt 1000 9999}}changed",
"lastName": "Doe{{$randomInt 1000 9999}}changed"
}