-
Notifications
You must be signed in to change notification settings - Fork 716
Expand file tree
/
Copy pathOpenApiODataWebApiExample.http
More file actions
82 lines (62 loc) · 2.44 KB
/
OpenApiODataWebApiExample.http
File metadata and controls
82 lines (62 loc) · 2.44 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
###
# OpenApiODataWebApiExample - ASP.NET OData Web API with OpenAPI/Swagger
# This example demonstrates comprehensive OData endpoints with Swagger documentation for legacy ASP.NET Web API
###
@baseUrl = http://localhost:52667
### Orders - Get by Key - Version 0.9 (Deprecated)
# Get a specific order (deprecated version)
GET {{baseUrl}}/api/orders/1?api-version=0.9
### Orders - Get by Key - Version 1.0
# Get a specific order with $select option
GET {{baseUrl}}/api/orders/1?api-version=1.0
### Orders - Get by Key with $select - Version 1.0
# Get a specific order with selected fields
GET {{baseUrl}}/api/orders/1?api-version=1.0&$select=Id,Customer
### People - Get by Key - Version 1.0
# Get a specific person
GET {{baseUrl}}/api/people/1?api-version=1.0
### Orders - Get All - Version 2.0
# Get all orders
GET {{baseUrl}}/api/orders?api-version=2.0
### Orders - Get All with $select - Version 2.0
# Get orders with specific fields
GET {{baseUrl}}/api/orders?api-version=2.0&$select=Id,Customer
### Orders - Get by Key - Version 2.0
# Get a specific order
GET {{baseUrl}}/api/orders/1?api-version=2.0
### People - Get All - Version 2.0
# Get all people
GET {{baseUrl}}/api/people?api-version=2.0
### People - Get All with $select - Version 2.0
# Get people with specific fields
GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
### People - Get by Key - Version 2.0
# Get a specific person with email
GET {{baseUrl}}/api/people/1?api-version=2.0
### Orders - Get All - Version 3.0
# Get all orders
GET {{baseUrl}}/api/orders?api-version=3.0
### Orders - Get All with $filter - Version 3.0
# Get filtered orders
GET {{baseUrl}}/api/orders?api-version=3.0&$filter=Id gt 1
### Orders - Get by Key - Version 3.0
# Get a specific order
GET {{baseUrl}}/api/orders/1?api-version=3.0
### People - Get All - Version 3.0
# Get all people with phone numbers
GET {{baseUrl}}/api/people?api-version=3.0
### People - Get by Key - Version 3.0
# Get a specific person with phone number
GET {{baseUrl}}/api/people/1?api-version=3.0
### Products - Get All - Version 3.0
# Get all products
GET {{baseUrl}}/api/products?api-version=3.0
### Products - Get by Key - Version 3.0
# Get a specific product
GET {{baseUrl}}/api/products/1?api-version=3.0
### Suppliers - Get All - Version 3.0
# Get all suppliers
GET {{baseUrl}}/api/suppliers?api-version=3.0
### Suppliers - Get by Key - Version 3.0
# Get a specific supplier
GET {{baseUrl}}/api/suppliers/1?api-version=3.0