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
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d",
"api-version": "2019-03-01-preview"
},
"responses": {
"200": {
"body": {
"value": "7948bcee-488c-47ce-941c-38e20ede803d"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,39 @@
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/enable": {
"post": {
"operationId": "Subscriptions_Enable",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is recommended to use camelCase when naming operationId

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current naming convention is used in all of our other APIs.

"x-ms-examples": {
"enableSubscription": {
"$ref": "./examples/enableSubscription.json"
}
},
"description": "The operation to enable a subscription",
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/EnabledSubscriptionId"
}
},
"default": {
"description": "Describes the error if the operation is not successful.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -121,6 +154,16 @@
}
}
},
"EnabledSubscriptionId": {
"description": "The ID of the subscriptions that is being enabled",
"properties": {
"value": {
"description": "The ID of the subscriptions that is being enabled",
"type": "string",
"readOnly": true
}
}
},
"SubscriptionName": {
"type": "object",
"description": "The new name of the subscription.",
Expand Down