Skip to content

Commit

Permalink
2017-03-01 api version of apim spec (Azure#1390)
Browse files Browse the repository at this point in the history
* 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
solankisamir authored and fearthecowboy committed Jul 12, 2017
1 parent dc0374c commit ee9ce45
Show file tree
Hide file tree
Showing 141 changed files with 17,629 additions and 18 deletions.
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 arm-apimanagement/2017-03-01/examples/ApiManagementCreateApi.json
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
}
}
}
}
}
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": []
}
]
}
}
}
}
}
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
}
}
}
}
}
Loading

0 comments on commit ee9ce45

Please sign in to comment.