forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2017-03-01 api version of apim spec (Azure#1390)
* 2017-03-01 api version of apim spec * Fixed issue in Email Template Delete and Removing secrets from Examples * Review updates in Spec
- Loading branch information
1 parent
dc0374c
commit ee9ce45
Showing
141 changed files
with
17,629 additions
and
18 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
arm-apimanagement/2017-03-01/examples/ApiManagementApplyNetworkConfigurationUpdates.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,53 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-03-01", | ||
"subscriptionId": "subid", | ||
"parameters": { | ||
"location": "west us" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2017-03-01" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", | ||
"name": "apimService1", | ||
"type": "Microsoft.ApiManagement/service", | ||
"tags": { | ||
"UID": "52ed5986-717b-45b4-b17c-3df8db372cff" | ||
}, | ||
"location": "East Asia", | ||
"etag": "AAAAAAAXX6Y=", | ||
"properties": { | ||
"publisherEmail": "admin@live.com", | ||
"publisherName": "Contoso", | ||
"provisioningState": "Succeeded", | ||
"targetProvisioningState": "", | ||
"createdAtUtc": "2015-09-22T01:50:34.7921566Z", | ||
"gatewayUrl": "https://apimService1.azure-api.net", | ||
"portalUrl": "https://apimService1.portal.azure-api.net", | ||
"managementApiUrl": "https://apimService1.management.azure-api.net", | ||
"scmUrl": "https://apimService1.scm.azure-api.net", | ||
"hostnameConfigurations": [], | ||
"staticIps": [ | ||
"207.46.155.24" | ||
], | ||
"virtualNetworkConfiguration": { | ||
"subnetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/eastUsVirtualNetwork/subnets/apimSubnet" | ||
}, | ||
"virtualNetworkType": "External" | ||
}, | ||
"sku": { | ||
"name": "Premium", | ||
"capacity": 1 | ||
} | ||
} | ||
} | ||
} | ||
} |
93 changes: 93 additions & 0 deletions
93
arm-apimanagement/2017-03-01/examples/ApiManagementCreateApi.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,93 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-03-01", | ||
"subscriptionId": "subid", | ||
"apiId": "tempgroup", | ||
"parameters": { | ||
"properties": { | ||
"description": "apidescription5200", | ||
"authenticationSettings": { | ||
"oAuth2": { | ||
"authorizationServerId": "authorizationServerId2283", | ||
"scope": "oauth2scope2580" | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "header4520", | ||
"query": "query3037" | ||
}, | ||
"displayName": "apiname1463", | ||
"serviceUrl": "http://newechoapi.cloudapp.net/api", | ||
"path": "newapiPath", | ||
"protocols": [ | ||
"https", | ||
"http" | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apiid9419", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "apiid9419", | ||
"properties": { | ||
"displayName": "apiname1463", | ||
"apiRevision": "1", | ||
"description": "apidescription5200", | ||
"serviceUrl": "http://newechoapi.cloudapp.net/api", | ||
"path": "newapiPath", | ||
"protocols": [ | ||
"http", | ||
"https" | ||
], | ||
"authenticationSettings": { | ||
"oAuth2": { | ||
"authorizationServerId": "authorizationServerId2283", | ||
"scope": "oauth2scope2580" | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "header4520", | ||
"query": "query3037" | ||
}, | ||
"isCurrent": true, | ||
"isOnline": true | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/apiid9419", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "apiid9419", | ||
"properties": { | ||
"displayName": "apiname1463", | ||
"apiRevision": "1", | ||
"description": "apidescription5200", | ||
"serviceUrl": "http://newechoapi.cloudapp.net/api", | ||
"path": "newapiPath", | ||
"protocols": [ | ||
"http", | ||
"https" | ||
], | ||
"authenticationSettings": { | ||
"oAuth2": { | ||
"authorizationServerId": "authorizationServerId2283", | ||
"scope": "oauth2scope2580" | ||
} | ||
}, | ||
"subscriptionKeyParameterNames": { | ||
"header": "header4520", | ||
"query": "query3037" | ||
}, | ||
"isCurrent": true, | ||
"isOnline": true | ||
} | ||
} | ||
} | ||
} | ||
} |
131 changes: 131 additions & 0 deletions
131
arm-apimanagement/2017-03-01/examples/ApiManagementCreateApiOperation.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,131 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-03-01", | ||
"subscriptionId": "subid", | ||
"apiId": "PetStoreTemplate2", | ||
"operationId":"newoperations", | ||
"parameters": { | ||
"name": "newoperation", | ||
"properties": { | ||
"displayName": "createUser2", | ||
"method": "POST", | ||
"urlTemplate": "/user1", | ||
"templateParameters": [], | ||
"description": "This can only be done by the logged in user.", | ||
"request": { | ||
"description": "Created user object", | ||
"queryParameters": [], | ||
"headers": [], | ||
"representations": [ | ||
{ | ||
"contentType": "application/json", | ||
"schemaId": "592f6c1d0af5840ca8897f0c", | ||
"typeName": "User" | ||
} | ||
] | ||
}, | ||
"responses": [ | ||
{ | ||
"statusCode": 200, | ||
"description": "successful operation", | ||
"representations": [ | ||
{ | ||
"contentType": "application/xml" | ||
}, | ||
{ | ||
"contentType": "application/json" | ||
} | ||
], | ||
"headers": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/PetStoreTemplate2/operations/newoperations", | ||
"type": "Microsoft.ApiManagement/service/apis/operations", | ||
"name": "newoperations", | ||
"properties": { | ||
"displayName": "createUser2", | ||
"method": "POST", | ||
"urlTemplate": "/user1", | ||
"templateParameters": [], | ||
"description": "This can only be done by the logged in user.", | ||
"request": { | ||
"description": "Created user object", | ||
"queryParameters": [], | ||
"headers": [], | ||
"representations": [ | ||
{ | ||
"contentType": "application/json", | ||
"schemaId": "592f6c1d0af5840ca8897f0c", | ||
"typeName": "User" | ||
} | ||
] | ||
}, | ||
"responses": [ | ||
{ | ||
"statusCode": 200, | ||
"description": "successful operation", | ||
"representations": [ | ||
{ | ||
"contentType": "application/xml" | ||
}, | ||
{ | ||
"contentType": "application/json" | ||
} | ||
], | ||
"headers": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/PetStoreTemplate2/operations/newoperations", | ||
"type": "Microsoft.ApiManagement/service/apis/operations", | ||
"name": "newoperations", | ||
"properties": { | ||
"displayName": "createUser2", | ||
"method": "POST", | ||
"urlTemplate": "/user1", | ||
"templateParameters": [], | ||
"description": "This can only be done by the logged in user.", | ||
"request": { | ||
"description": "Created user object", | ||
"queryParameters": [], | ||
"headers": [], | ||
"representations": [ | ||
{ | ||
"contentType": "application/json", | ||
"schemaId": "592f6c1d0af5840ca8897f0c", | ||
"typeName": "User" | ||
} | ||
] | ||
}, | ||
"responses": [ | ||
{ | ||
"statusCode": 200, | ||
"description": "successful operation", | ||
"representations": [ | ||
{ | ||
"contentType": "application/xml" | ||
}, | ||
{ | ||
"contentType": "application/json" | ||
} | ||
], | ||
"headers": [] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
arm-apimanagement/2017-03-01/examples/ApiManagementCreateApiUsingSwaggerImport.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,62 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2017-03-01", | ||
"subscriptionId": "subid", | ||
"apiId": "petstore", | ||
"parameters": { | ||
"properties": { | ||
"contentFormat": "swagger-link-json", | ||
"contentValue": "http://petstore.swagger.io/v2/swagger.json", | ||
"path": "petstore" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/petstoreapi", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "petstoreapi", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"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/v2", | ||
"path": "petstore", | ||
"protocols": [ | ||
"http" | ||
], | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/petstoreapi", | ||
"type": "Microsoft.ApiManagement/service/apis", | ||
"name": "petstoreapi", | ||
"properties": { | ||
"displayName": "Swagger Petstore", | ||
"apiRevision": "1", | ||
"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/v2", | ||
"path": "petstore", | ||
"protocols": [ | ||
"http" | ||
], | ||
"subscriptionKeyParameterNames": { | ||
"header": "Ocp-Apim-Subscription-Key", | ||
"query": "subscription-key" | ||
}, | ||
"isCurrent": true | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.