-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Portal revision API #11738
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
Merged
Merged
Portal revision API #11738
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
68739a1
Portal revision API
ygrik fa36862
fixed spec errors
ygrik 5acbe57
fixed references
ygrik c53ae60
fixed return code on create and added long running operation properties
ygrik 41bfa63
fixed create response
ygrik 92b02a1
fixed comments
ygrik 99b5ce5
small fix
ygrik 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 hidden or 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
326 changes: 326 additions & 0 deletions
326
...ource-manager/Microsoft.ApiManagement/preview/2020-06-01-preview/apimportalrevisions.json
This file contains hidden or 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,326 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "ApiManagementClient", | ||
| "description": "Use these REST APIs for performing operations in Azure API Management deployment.", | ||
| "version": "2020-06-01-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow.", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions": { | ||
| "get": { | ||
| "tags": [ | ||
| "PortalRevision" | ||
| ], | ||
| "operationId": "PortalRevision_ListByService", | ||
| "description": "Lists a collection of developer portal revision entities.", | ||
| "x-ms-examples": { | ||
| "ApiManagementListPortalRevisions": { | ||
| "$ref": "./examples/ApiManagementListPortalRevisions.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "name": "$filter", | ||
| "in": "query", | ||
| "required": false, | ||
| "type": "string", | ||
| "description": "| Field | Supported operators | Supported functions |\n|-------------|------------------------|-----------------------------------|\n\r\n|name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|\n|description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith|\n|isCurrent | eq, ne | |\n" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/TopQueryParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SkipQueryParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Lists a collection of developer portal revision entities.", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionCollection" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-pageable": { | ||
| "nextLinkName": "nextLink" | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}": { | ||
| "head": { | ||
| "tags": [ | ||
| "PortalRevision" | ||
| ], | ||
| "operationId": "PortalRevision_GetEntityTag", | ||
| "description": "Gets developer portal revision specified by its identifier.", | ||
| "x-ms-examples": { | ||
| "ApiManagementHeadPortalRevision": { | ||
| "$ref": "./examples/ApiManagementHeadPortalRevision.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/PortalRevisionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Specified Portal revision entity exists and current entity state version is present in the ETag header.", | ||
| "headers": { | ||
| "ETag": { | ||
| "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "get": { | ||
| "tags": [ | ||
| "PortalRevision" | ||
| ], | ||
| "operationId": "PortalRevision_Get", | ||
| "description": "Gets developer portal revision specified by its identifier.", | ||
| "x-ms-examples": { | ||
| "ApiManagementGetPortalRevision": { | ||
| "$ref": "./examples/ApiManagementGetPortalRevision.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/PortalRevisionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "Gets the specified developer portal revision entity.", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionContract" | ||
| }, | ||
| "headers": { | ||
| "ETag": { | ||
| "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "tags": [ | ||
| "PortalRevision" | ||
| ], | ||
| "operationId": "PortalRevision_CreateOrUpdate", | ||
| "description": "Creates a new developer portal revision.", | ||
| "x-ms-examples": { | ||
| "ApiManagementCreatePortalRevision": { | ||
| "$ref": "./examples/ApiManagementCreatePortalRevision.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/PortalRevisionIdParameter" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionContract" | ||
| } | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "202": { | ||
ygrik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "description": "Request to create developer portal revision was accepted." | ||
| }, | ||
| "201": { | ||
| "description": "Developer portal revision was successfully created.", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionContract" | ||
| }, | ||
| "headers": { | ||
| "ETag": { | ||
| "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true, | ||
| "x-ms-long-running-operation-options": { | ||
| "final-state-via": "location" | ||
| } | ||
| }, | ||
| "patch": { | ||
| "tags": [ | ||
| "PortalRevision" | ||
| ], | ||
| "operationId": "PortalRevision_Update", | ||
| "description": "Updates the description of specified portal revision or makes it current.", | ||
| "x-ms-examples": { | ||
| "ApiManagementUpdatePortalRevision": { | ||
| "$ref": "./examples/ApiManagementUpdatePortalRevision.json" | ||
| } | ||
| }, | ||
| "parameters": [ | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ServiceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/PortalRevisionIdParameter" | ||
| }, | ||
| { | ||
| "name": "parameters", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionContract" | ||
| } | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "202": { | ||
| "description": "Request to update developer portal revision was accepted." | ||
| }, | ||
| "200": { | ||
| "description": "Developer portal revision was successfully updated.", | ||
| "schema": { | ||
| "$ref": "./definitions.json#/definitions/PortalRevisionContract" | ||
| }, | ||
| "headers": { | ||
| "ETag": { | ||
| "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", | ||
| "type": "string" | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "./apimanagement.json#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true, | ||
| "x-ms-long-running-operation-options": { | ||
| "final-state-via": "location" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": {}, | ||
| "parameters": {} | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.