-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger changes to introduce REST APIs for offline and online region for the Cosmos DB account #2962
Merged
anuchandy
merged 10 commits into
Azure:master
from
arsalana-microsoft:onlineofflinechanges
May 9, 2018
Merged
Swagger changes to introduce REST APIs for offline and online region for the Cosmos DB account #2962
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fc2e0c2
Swagger changes to introduce REST APIs for offline and online region
arsalana-microsoft 754d78c
mark the offline and online apis as long running operations
arsalana-microsoft f874740
fix the compiling error for the json
arsalana-microsoft fa9bc30
define a new region parameter for online/offline
arsalana-microsoft 8a4a624
fix the bug where the region parameter was part of query instead of body
arsalana-microsoft 42bc198
actually fixing the bug where the region parameter was part of query …
arsalana-microsoft ab30108
actually fixing the bug where the region parameter was part of query …
arsalana-microsoft 05246bc
actually fixing the bug where the region parameter was part of query …
arsalana-microsoft f2366fb
another try to specify the correct swagger changes
arsalana-microsoft 9057135
Added default error response
arsalana-microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
13 changes: 13 additions & 0 deletions
13
...Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountOfflineRegion.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 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-04-08", | ||
"subscriptionId": "subid", | ||
"region":"North Europe" | ||
}, | ||
"responses": { | ||
"200": { }, | ||
"202": { } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountOnlineRegion.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 @@ | ||
{ | ||
"parameters": { | ||
"accountName": "ddb1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2015-04-08", | ||
"subscriptionId": "subid", | ||
"region":"North Europe" | ||
}, | ||
"responses": { | ||
"200": { }, | ||
"202": { } | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a "default" response to capture all the error responses. The schema complies with ARM RPC error contract. Example can be found Batch RP swagger spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ravbhatnagar I have added a default error response. Can you please review.