-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdabCalls.http
29 lines (21 loc) · 879 Bytes
/
dabCalls.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
### Using REST Client VS Code Extension (https://github.com/Huachao/vscode-restclient)
### Get all Customers
GET https://127.0.0.1:5001/api/Customer
### Get customer details when customer id = 1
GET https://127.0.0.1:5001/api/Customer/CustomerID/1
### Get customers first and last name
GET https://127.0.0.1:5001/api/Customer?$select=FirstName,LastName
### Get customers details when fist name = Orlando
GET https://127.0.0.1:5001/api/Customer?$filter=FirstName eq 'Orlando'
### Get customers first and last name. Ordered by first name descending
GET https://127.0.0.1:5001/api/Customer?$orderby=FirstName desc ,LastName
### Get first five customers
GET https://127.0.0.1:5001/api/Customer?$first=5
###
### Update customer's info
PATCH https://127.0.0.1:5001/api/Customer/CustomerID/1
Content-type: application/json
{
"FirstName": "Rick",
"LastName": "Deckard"
}