-
Notifications
You must be signed in to change notification settings - Fork 717
Expand file tree
/
Copy pathExamples.http
More file actions
55 lines (35 loc) · 1.31 KB
/
Examples.http
File metadata and controls
55 lines (35 loc) · 1.31 KB
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
# For more info on HTTP files go to https://aka.ms/vs/httpfile
@baseUrl = http://localhost:9004
### ------------------------------ BY QUERY STRING ------------------------------
### VERSION 1.0
### People - Get All
GET {{baseUrl}}/api/people?api-version=1.0
### People - Get All with $select
GET {{baseUrl}}/api/people?api-version=1.0&$select=firstName,lastName
### People - Get by Key
GET {{baseUrl}}/api/people/1?api-version=1.0
### VERSION 2.0
### People - Get All
GET {{baseUrl}}/api/people?api-version=2.0
### People - Get All with $select
GET {{baseUrl}}/api/people?api-version=2.0&$select=firstName,lastName,email
### People - Get by Key
GET {{baseUrl}}/api/people/1?api-version=2.0
### People - Partial Update
PATCH {{baseUrl}}/api/people/1?api-version=2.0
content-type: application/json
prefer: return=representation
{"firstName":"John","lastName":"Doe"}
### VERSION 3.0
### People - Get All
GET {{baseUrl}}/api/people?api-version=3.0
### People - Get All with $select
GET {{baseUrl}}/api/people?api-version=3.0&$select=firstName,lastName,email
### People - Get by Key
GET {{baseUrl}}/api/people/1?api-version=3.0
### ------------------------------ BY URL SEGMENT ------------------------------
### VERSION 1.0
### Orders - Get All
GET {{baseUrl}}/api/v1/orders
### Orders - Get by Key
GET {{baseUrl}}/api/v1/orders/1