-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce examples for MPG from typespec (#5014)
* introduce the cache to parameter in examples * use the examples instead * add the examples * add the ability * add another example for delete * refinement * refinement * flip the default value
- Loading branch information
1 parent
f15460a
commit 3ce539e
Showing
20 changed files
with
665 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
test/TestProjects/MgmtTypeSpec/examples/2024-05-01/Foos_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"operationId": "Foos_CreateOrUpdate", | ||
"title": "Create a foo", | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myRg", | ||
"fooName": "myFoo", | ||
"resource": { | ||
"properties": { | ||
"serviceUrl": "https://myService.com", | ||
"something": "for test only" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/MgmtTypeSpec/foos/myFoo", | ||
"name": "myFoo", | ||
"type": "MgmtTypeSpec/foos", | ||
"properties": { | ||
"serviceUrl": "https://myService.com", | ||
"something": "for test only" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
test/TestProjects/MgmtTypeSpec/examples/2024-05-01/Foos_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"operationId": "Foos_Get", | ||
"title": "Get a foo", | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myRg", | ||
"fooName": "myFoo" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
test/TestProjects/MgmtTypeSpec/examples/2024-05-01/Foos_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"operationId": "Foos_Get", | ||
"title": "Get a foo", | ||
"parameters": { | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "myRg", | ||
"fooName": "myFoo" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/MgmtTypeSpec/foos/myFoo", | ||
"name": "myFoo", | ||
"type": "MgmtTypeSpec/foos", | ||
"properties": { | ||
"serviceUrl": "https://myService.com", | ||
"something": "for test only" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.