Skip to content

Commit bbbade7

Browse files
Copilotxavierjohn
andcommitted
Simplify .http files to only show GET methods with different versions
Co-authored-by: xavierjohn <[email protected]>
1 parent 06fb621 commit bbbade7

File tree

14 files changed

+7
-346
lines changed

14 files changed

+7
-346
lines changed

examples/AspNet/OData/AdvancedODataWebApiExample/AdvancedODataWebApiExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3737
# Get a specific person by ID
3838
GET {{baseUrl}}/api/people/1?api-version=2.0
3939

40-
### People - Patch - Version 2.0
41-
# Update a person using OData PATCH
42-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
43-
Content-Type: application/json
44-
45-
{
46-
"firstName": "Jane",
47-
"email": "[email protected]"
48-
}
49-
5040
### People (V2) - Get All - Version 2.0
5141
# Get all people from version 2 specific controller
5242
GET {{baseUrl}}/api/people2?api-version=2.0

examples/AspNet/OData/BasicODataWebApiExample/BasicODataWebApiExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3333
# Get a specific person by ID
3434
GET {{baseUrl}}/api/people/1?api-version=2.0
3535

36-
### People - Patch - Version 2.0
37-
# Update a person using OData PATCH
38-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
39-
Content-Type: application/json
40-
41-
{
42-
"firstName": "Jane",
43-
"email": "[email protected]"
44-
}
45-
4636
### Orders - Get All - Version 1.0
4737
# Get all orders
4838
GET {{baseUrl}}/api/v1/orders

examples/AspNet/OData/ConventionsODataWebApiExample/ConventionsODataWebApiExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3333
# Get a specific person by ID
3434
GET {{baseUrl}}/api/people/1?api-version=2.0
3535

36-
### People - Patch - Version 2.0
37-
# Update a person using OData PATCH
38-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
39-
Content-Type: application/json
40-
41-
{
42-
"firstName": "Jane",
43-
"email": "[email protected]"
44-
}
45-
4636
### Orders - Get All - Version 1.0
4737
# Get all orders
4838
GET {{baseUrl}}/api/v1/orders

examples/AspNet/OData/OpenApiODataWebApiExample/OpenApiODataWebApiExample.http

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ GET {{baseUrl}}/api/orders/1?api-version=1.0
1717
# Get a specific order with selected fields
1818
GET {{baseUrl}}/api/orders/1?api-version=1.0&$select=Id,Customer
1919

20-
### Orders - Create - Version 1.0
21-
# Create a new order
22-
POST {{baseUrl}}/api/orders?api-version=1.0
23-
Content-Type: application/json
24-
25-
{
26-
"customer": "John Doe"
27-
}
28-
2920
### People - Get by Key - Version 1.0
3021
# Get a specific person
3122
GET {{baseUrl}}/api/people/1?api-version=1.0
@@ -42,16 +33,6 @@ GET {{baseUrl}}/api/orders?api-version=2.0&$select=Id,Customer
4233
# Get a specific order
4334
GET {{baseUrl}}/api/orders/1?api-version=2.0
4435

45-
### Orders - Create - Version 2.0
46-
# Create a new order with effective date
47-
POST {{baseUrl}}/api/orders?api-version=2.0
48-
Content-Type: application/json
49-
50-
{
51-
"customer": "Bob Smith",
52-
"effectiveDate": "2024-01-15T00:00:00Z"
53-
}
54-
5536
### People - Get All - Version 2.0
5637
# Get all people
5738
GET {{baseUrl}}/api/people?api-version=2.0
@@ -76,16 +57,6 @@ GET {{baseUrl}}/api/orders?api-version=3.0&$filter=Id gt 1
7657
# Get a specific order
7758
GET {{baseUrl}}/api/orders/1?api-version=3.0
7859

79-
### Orders - Create - Version 3.0
80-
# Create a new order
81-
POST {{baseUrl}}/api/orders?api-version=3.0
82-
Content-Type: application/json
83-
84-
{
85-
"customer": "Charlie Brown",
86-
"effectiveDate": "2024-02-01T00:00:00Z"
87-
}
88-
8960
### People - Get All - Version 3.0
9061
# Get all people with phone numbers
9162
GET {{baseUrl}}/api/people?api-version=3.0

examples/AspNet/WebApi/BasicWebApiExample/BasicWebApiExample.http

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ GET {{baseUrl}}/api/v1.0/helloworld
2020
### HelloWorldController - Get by ID - Version 1.0
2121
# Get hello world with specific ID
2222
GET {{baseUrl}}/api/v1.0/helloworld/42
23-
24-
### HelloWorldController - Create - Version 1.0
25-
# Create new hello world resource
26-
POST {{baseUrl}}/api/v1.0/helloworld
27-
Content-Type: application/json

examples/AspNet/WebApi/OpenApiWebApiExample/OpenApiWebApiExample.http

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,6 @@ GET {{baseUrl}}/api/orders/1?api-version=0.9
1313
# Get a specific order
1414
GET {{baseUrl}}/api/orders/1?api-version=1.0
1515

16-
### Orders - Create - Version 1.0
17-
# Create a new order
18-
POST {{baseUrl}}/api/orders?api-version=1.0
19-
Content-Type: application/json
20-
21-
{
22-
"customer": "John Doe"
23-
}
24-
25-
### Orders - Update - Version 1.0
26-
# Update an existing order
27-
PATCH {{baseUrl}}/api/orders/42?api-version=1.0
28-
Content-Type: application/json
29-
30-
{
31-
"customer": "Jane Doe"
32-
}
33-
3416
### Orders - Get All - Version 2.0
3517
# Get all orders
3618
GET {{baseUrl}}/api/orders?api-version=2.0
@@ -39,26 +21,6 @@ GET {{baseUrl}}/api/orders?api-version=2.0
3921
# Get a specific order
4022
GET {{baseUrl}}/api/orders/1?api-version=2.0
4123

42-
### Orders - Create - Version 2.0
43-
# Create a new order with effective date
44-
POST {{baseUrl}}/api/orders?api-version=2.0
45-
Content-Type: application/json
46-
47-
{
48-
"customer": "Bob Smith",
49-
"effectiveDate": "2024-01-15T00:00:00Z"
50-
}
51-
52-
### Orders - Update - Version 2.0
53-
# Update an existing order with effective date
54-
PATCH {{baseUrl}}/api/orders/42?api-version=2.0
55-
Content-Type: application/json
56-
57-
{
58-
"customer": "Alice Johnson",
59-
"effectiveDate": "2024-01-20T00:00:00Z"
60-
}
61-
6224
### Orders - Get All - Version 3.0
6325
# Get all orders
6426
GET {{baseUrl}}/api/orders?api-version=3.0
@@ -67,20 +29,6 @@ GET {{baseUrl}}/api/orders?api-version=3.0
6729
# Get a specific order
6830
GET {{baseUrl}}/api/orders/1?api-version=3.0
6931

70-
### Orders - Create - Version 3.0
71-
# Create a new order
72-
POST {{baseUrl}}/api/orders?api-version=3.0
73-
Content-Type: application/json
74-
75-
{
76-
"customer": "Charlie Brown",
77-
"effectiveDate": "2024-02-01T00:00:00Z"
78-
}
79-
80-
### Orders - Delete - Version 3.0
81-
# Delete an order
82-
DELETE {{baseUrl}}/api/orders/42?api-version=3.0
83-
8432
### People - Get by ID - Version 0.9 (Deprecated)
8533
# Get a specific person (deprecated version)
8634
GET {{baseUrl}}/api/v0.9/people/1
@@ -104,15 +52,3 @@ GET {{baseUrl}}/api/v3.0/people
10452
### People - Get by ID - Version 3.0
10553
# Get a specific person with phone number
10654
GET {{baseUrl}}/api/v3.0/people/1
107-
108-
### People - Create - Version 3.0
109-
# Create a new person
110-
POST {{baseUrl}}/api/v3.0/people
111-
Content-Type: application/json
112-
113-
{
114-
"firstName": "John",
115-
"lastName": "Doe",
116-
"email": "[email protected]",
117-
"phone": "555-123-4567"
118-
}

examples/AspNetCore/OData/ODataAdvancedExample/ODataAdvancedExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3737
# Get a specific person by ID
3838
GET {{baseUrl}}/api/people/1?api-version=2.0
3939

40-
### People - Patch - Version 2.0
41-
# Update a person using OData PATCH
42-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
43-
Content-Type: application/json
44-
45-
{
46-
"firstName": "Jane",
47-
"email": "[email protected]"
48-
}
49-
5040
### People (V2) - Get All - Version 2.0
5141
# Get all people from version 2 specific controller
5242
GET {{baseUrl}}/api/people2?api-version=2.0

examples/AspNetCore/OData/ODataBasicExample/ODataBasicExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3333
# Get a specific person by ID
3434
GET {{baseUrl}}/api/people/1?api-version=2.0
3535

36-
### People - Patch - Version 2.0
37-
# Update a person using OData PATCH
38-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
39-
Content-Type: application/json
40-
41-
{
42-
"firstName": "Jane",
43-
"email": "[email protected]"
44-
}
45-
4636
### Orders - Get All - Version 1.0
4737
# Get all orders
4838
GET {{baseUrl}}/api/v1/orders

examples/AspNetCore/OData/ODataConventionsExample/ODataConventionsExample.http

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ GET {{baseUrl}}/api/people?api-version=2.0&$select=FirstName,LastName,Email
3333
# Get a specific person by ID
3434
GET {{baseUrl}}/api/people/1?api-version=2.0
3535

36-
### People - Patch - Version 2.0
37-
# Update a person using OData PATCH
38-
PATCH {{baseUrl}}/api/people/1?api-version=2.0
39-
Content-Type: application/json
40-
41-
{
42-
"firstName": "Jane",
43-
"email": "[email protected]"
44-
}
45-
4636
### Orders - Get All - Version 1.0
4737
# Get all orders
4838
GET {{baseUrl}}/api/v1/orders

examples/AspNetCore/OData/ODataOpenApiExample/ODataOpenApiExample.http

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ GET {{baseUrl}}/api/orders/1?api-version=1.0
1717
# Get a specific order with selected fields
1818
GET {{baseUrl}}/api/orders/1?api-version=1.0&$select=Id,Customer
1919

20-
### Orders - Create - Version 1.0
21-
# Create a new order
22-
POST {{baseUrl}}/api/orders?api-version=1.0
23-
Content-Type: application/json
24-
25-
{
26-
"customer": "John Doe"
27-
}
28-
2920
### People - Get by Key - Version 1.0
3021
# Get a specific person
3122
GET {{baseUrl}}/api/people/1?api-version=1.0
@@ -42,16 +33,6 @@ GET {{baseUrl}}/api/orders?api-version=2.0&$select=Id,Customer
4233
# Get a specific order
4334
GET {{baseUrl}}/api/orders/1?api-version=2.0
4435

45-
### Orders - Create - Version 2.0
46-
# Create a new order with effective date
47-
POST {{baseUrl}}/api/orders?api-version=2.0
48-
Content-Type: application/json
49-
50-
{
51-
"customer": "Bob Smith",
52-
"effectiveDate": "2024-01-15T00:00:00Z"
53-
}
54-
5536
### People - Get All - Version 2.0
5637
# Get all people
5738
GET {{baseUrl}}/api/people?api-version=2.0
@@ -76,16 +57,6 @@ GET {{baseUrl}}/api/orders?api-version=3.0&$filter=Id gt 1
7657
# Get a specific order
7758
GET {{baseUrl}}/api/orders/1?api-version=3.0
7859

79-
### Orders - Create - Version 3.0
80-
# Create a new order
81-
POST {{baseUrl}}/api/orders?api-version=3.0
82-
Content-Type: application/json
83-
84-
{
85-
"customer": "Charlie Brown",
86-
"effectiveDate": "2024-02-01T00:00:00Z"
87-
}
88-
8960
### People - Get All - Version 3.0
9061
# Get all people with phone numbers
9162
GET {{baseUrl}}/api/people?api-version=3.0

0 commit comments

Comments
 (0)