Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
"x-ms-examples": {
"ApiManagementGetApiContract": {
"$ref": "./examples/ApiManagementGetApiContract.json"
},
"ApiManagementGetApiRevisionContract": {
"$ref": "./examples/ApiManagementGetApiRevision.json"
}
},
"produces": [
Expand Down Expand Up @@ -3900,6 +3903,16 @@
"description": "Indicates if API revision is accessible via the gateway.",
"readOnly": true
},
"apiRevisionDescription": {
"type": "string",
"description": "Description of the Api Revision.",
"maxLength": 256
},
"apiVersionDescription": {
"type": "string",
"description": "Description of the Api Version.",
"maxLength": 256
},
"apiVersionSetId": {
"type": "string",
"description": "A resource identifier for the related ApiVersionSet."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"resourceGroupName": "rg1",
"api-version": "2018-01-01",
"subscriptionId": "subid",
"apiId": "5a838fd48f33670ed070d77c;rev=4",
"apiId": "echo-api;rev=4",
"parameters": {
"properties": {
"displayName": "Swagger Petstore V2",
"displayName": "Echo API",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
Expand All @@ -18,50 +18,53 @@
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"isCurrent": false
"isCurrent": false,
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5a838fd48f33670ed070d77c;rev=4",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=4",
"type": "Microsoft.ApiManagement/service/apis",
"name": "5a838fd48f33670ed070d77c;rev=4",
"name": "echo-api;rev=4",
"properties": {
"displayName": "Swagger Petstore 2",
"displayName": "Echo API",
"apiRevision": "4",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
}
},
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
},
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5a838fd48f33670ed070d77c;rev=4",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=4",
"type": "Microsoft.ApiManagement/service/apis",
"name": "5a838fd48f33670ed070d77c;rev=4",
"name": "echo-api;rev=4",
"properties": {
"displayName": "Swagger Petstore 2",
"displayName": "Echo API",
"apiRevision": "4",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
}
},
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2018-01-01",
"subscriptionId": "subid",
"apiId": "echo-api;rev=3"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=3",
"type": "Microsoft.ApiManagement/service/apis",
"name": "echo-api;rev=3",
"properties": {
"displayName": "Service",
"apiRevision": "3",
"serviceUrl": "https://api.plexonline.com/DataSource/Service.asmx",
"path": "schulte",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"apiRevisionDescription": "fixed bug in contract"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
"x-ms-examples": {
"ApiManagementGetApiContract": {
"$ref": "./examples/ApiManagementGetApiContract.json"
},
"ApiManagementGetApiRevisionContract": {
"$ref": "./examples/ApiManagementGetApiRevision.json"
}
},
"produces": [
Expand Down Expand Up @@ -3680,6 +3683,16 @@
"description": "Indicates if API revision is accessible via the gateway.",
"readOnly": true
},
"apiRevisionDescription": {
"type": "string",
"description": "Description of the Api Revision.",
"maxLength": 256
},
"apiVersionDescription": {
"type": "string",
"description": "Description of the Api Version.",
"maxLength": 256
},
"apiVersionSetId": {
"type": "string",
"description": "A resource identifier for the related ApiVersionSet."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"resourceGroupName": "rg1",
"api-version": "2018-06-01-preview",
"subscriptionId": "subid",
"apiId": "5a838fd48f33670ed070d77c;rev=4",
"apiId": "echo-api;rev=4",
"parameters": {
"properties": {
"displayName": "Swagger Petstore V2",
"displayName": "Echo API",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
Expand All @@ -18,50 +18,53 @@
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"isCurrent": false
"isCurrent": false,
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5a838fd48f33670ed070d77c;rev=4",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=4",
"type": "Microsoft.ApiManagement/service/apis",
"name": "5a838fd48f33670ed070d77c;rev=4",
"name": "echo-api;rev=4",
"properties": {
"displayName": "Swagger Petstore 2",
"displayName": "Echo API",
"apiRevision": "4",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
}
},
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
},
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5a838fd48f33670ed070d77c;rev=4",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=4",
"type": "Microsoft.ApiManagement/service/apis",
"name": "5a838fd48f33670ed070d77c;rev=4",
"name": "echo-api;rev=4",
"properties": {
"displayName": "Swagger Petstore 2",
"displayName": "Echo API",
"apiRevision": "4",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"serviceUrl": "http://petstore.swagger.io/v4",
"serviceUrl": "http://petstore.swagger.io/v5",
"path": "petstore2",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
}
},
"apiRevisionDescription": "moved to swagger petstore backend"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2018-06-01-preview",
"subscriptionId": "subid",
"apiId": "echo-api;rev=3"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/echo-api;rev=3",
"type": "Microsoft.ApiManagement/service/apis",
"name": "echo-api;rev=3",
"properties": {
"displayName": "Service",
"apiRevision": "3",
"serviceUrl": "https://api.plexonline.com/DataSource/Service.asmx",
"path": "schulte",
"protocols": [
"https"
],
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"apiRevisionDescription": "fixed bug in contract"
}
}
}
}
}