Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
navysingla committed May 8, 2020
1 parent e0f5a8f commit 20243ad
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"api-version": "2016-06-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"authorizationSource": "Legacy",
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"displayName": "Subscription2",
"state": "Enabled",
"subscriptionPolicies": {
"locationPlacementId": "Internal_2014-09-01",
"quotaId": "Internal_2014-09-01",
"spendingLimit": "Off"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"api-version": "2016-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad/locations/eastasia",
"name": "eastasia",
"displayName": "East Asia",
"longitude": "114.188",
"latitude": "22.267"
},
{
"id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad/locations/southeastasia",
"name": "southeastasia",
"displayName": "Southeast Asia",
"longitude": "103.833",
"latitude": "1.283"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2016-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"authorizationSource": "Legacy",
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"displayName": "SubscriptionName",
"state": "Enabled",
"subscriptionPolicies": {
"locationPlacementId": "Internal_2014-09-01",
"quotaId": "Internal_2014-09-01",
"spendingLimit": "Off"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2016-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/tenants/72f988bf-86f1-41af-91ab-2d7cd011db47",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
},
{
"id": "/tenants/33e01921-4d64-4f8c-a055-5bdaffd5e33d",
"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"operationId": "Subscriptions_ListLocations",
"summary": "Gets all available geo-locations.",
"description": "This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.",
"x-ms-examples": {
"listLocations": {
"$ref": "./examples/listLocations.json"
}
},
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand Down Expand Up @@ -70,6 +75,11 @@
],
"operationId": "Subscriptions_Get",
"description": "Gets details about a specified subscription.",
"x-ms-examples": {
"getSubscription": {
"$ref": "./examples/getSubscription.json"
}
},
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand All @@ -95,6 +105,11 @@
],
"operationId": "Subscriptions_List",
"description": "Gets all subscriptions for a tenant.",
"x-ms-examples": {
"listSubscriptions": {
"$ref": "./examples/listSubscriptions.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
Expand All @@ -120,6 +135,11 @@
],
"operationId": "Tenants_List",
"description": "Gets the tenants for your account.",
"x-ms-examples": {
"listTenants": {
"$ref": "./examples/listTenants.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down

0 comments on commit 20243ad

Please sign in to comment.