Skip to content

Commit

Permalink
ApiManagement : Moved all definitions to a common file for automation (
Browse files Browse the repository at this point in the history
…#5545)

* A common Definitions file

* Fix for x-ms-odata

* Add file to readme.md
  • Loading branch information
solankisamir authored and dsgouda committed Apr 4, 2019
1 parent 5a6f2db commit 37ee50f
Show file tree
Hide file tree
Showing 30 changed files with 5,316 additions and 5,335 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"200": {
"description": "Lists a collection of TagResource entities.",
"schema": {
"$ref": "./apimtagresources.json#/definitions/TagResourceCollection"
"$ref": "./definitions.json#/definitions/TagResourceCollection"
}
},
"default": {
Expand All @@ -97,7 +97,7 @@
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "./apimtagresources.json#/definitions/TagResourceContract"
"x-ms-odata": "./definitions.json#/definitions/TagResourceContract"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"200": {
"description": "Lists a collection of Api Version Set entities.",
"schema": {
"$ref": "#/definitions/ApiVersionSetCollection"
"$ref": "./definitions.json#/definitions/ApiVersionSetCollection"
}
},
"default": {
Expand All @@ -90,7 +90,7 @@
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "#/definitions/ApiVersionSetContract"
"x-ms-odata": "./definitions.json#/definitions/ApiVersionSetContract"
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}": {
Expand Down Expand Up @@ -172,7 +172,7 @@
"200": {
"description": "Gets the specified Api Version Set entity.",
"schema": {
"$ref": "#/definitions/ApiVersionSetContract"
"$ref": "./definitions.json#/definitions/ApiVersionSetContract"
},
"headers": {
"ETag": {
Expand Down Expand Up @@ -215,7 +215,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ApiVersionSetContract"
"$ref": "./definitions.json#/definitions/ApiVersionSetContract"
},
"description": "Create or update parameters."
},
Expand All @@ -233,7 +233,7 @@
"201": {
"description": "Api Version Set was successfully created.",
"schema": {
"$ref": "#/definitions/ApiVersionSetContract"
"$ref": "./definitions.json#/definitions/ApiVersionSetContract"
},
"headers": {
"ETag": {
Expand All @@ -245,7 +245,7 @@
"200": {
"description": "Api Version Set was successfully updated.",
"schema": {
"$ref": "#/definitions/ApiVersionSetContract"
"$ref": "./definitions.json#/definitions/ApiVersionSetContract"
},
"headers": {
"ETag": {
Expand Down Expand Up @@ -288,7 +288,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ApiVersionSetUpdateParameters"
"$ref": "./definitions.json#/definitions/ApiVersionSetUpdateParameters"
},
"description": "Update parameters."
},
Expand Down Expand Up @@ -362,160 +362,6 @@
}
}
},
"definitions": {
"ApiVersionSetCollection": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ApiVersionSetContract"
},
"description": "Page values."
},
"nextLink": {
"type": "string",
"description": "Next page link if any."
}
},
"description": "Paged Api Version Set list representation."
},
"ApiVersionSetEntityBase": {
"properties": {
"description": {
"type": "string",
"description": "Description of API Version Set."
},
"versionQueryName": {
"type": "string",
"description": "Name of query parameter that indicates the API Version if versioningScheme is set to `query`.",
"minLength": 1,
"maxLength": 100
},
"versionHeaderName": {
"type": "string",
"description": "Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`.",
"minLength": 1,
"maxLength": 100
}
},
"description": "Api Version set base parameters"
},
"ApiVersionSetContractProperties": {
"properties": {
"displayName": {
"type": "string",
"description": "Name of API Version Set",
"minLength": 1,
"maxLength": 100
},
"versioningScheme": {
"type": "string",
"description": "An value that determines where the API Version identifer will be located in a HTTP request.",
"enum": [
"Segment",
"Query",
"Header"
],
"x-ms-enum": {
"name": "versioningScheme",
"modelAsString": true,
"values": [
{
"value": "Segment",
"description": "The API Version is passed in a path segment."
},
{
"value": "Query",
"description": "The API Version is passed in a query parameter."
},
{
"value": "Header",
"description": "The API Version is passed in a HTTP header."
}
]
}
}
},
"allOf": [
{
"$ref": "#/definitions/ApiVersionSetEntityBase"
}
],
"required": [
"displayName",
"versioningScheme"
],
"description": "Properties of an API Version Set."
},
"ApiVersionSetContract": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ApiVersionSetContractProperties",
"description": "Api VersionSet contract properties."
}
},
"allOf": [
{
"$ref": "./apimanagement.json#/definitions/Resource"
}
],
"description": "Api Version Set Contract details."
},
"ApiVersionSetUpdateParametersProperties": {
"properties": {
"displayName": {
"type": "string",
"description": "Name of API Version Set",
"minLength": 1,
"maxLength": 100
},
"versioningScheme": {
"type": "string",
"description": "An value that determines where the API Version identifer will be located in a HTTP request.",
"enum": [
"Segment",
"Query",
"Header"
],
"x-ms-enum": {
"name": "versioningScheme",
"modelAsString": true,
"values": [
{
"value": "Segment",
"description": "The API Version is passed in a path segment."
},
{
"value": "Query",
"description": "The API Version is passed in a query parameter."
},
{
"value": "Header",
"description": "The API Version is passed in a HTTP header."
}
]
}
}
},
"allOf": [
{
"$ref": "#/definitions/ApiVersionSetEntityBase"
}
],
"description": "Properties used to create or update an API Version Set."
},
"ApiVersionSetUpdateParameters": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ApiVersionSetUpdateParametersProperties",
"description": "Parameters to update or create an Api Version Set Contract."
}
},
"description": "Parameters to update or create an Api Version Set Contract."
}
},
"parameters": {
}
"definitions": { },
"parameters": { }
}
Loading

0 comments on commit 37ee50f

Please sign in to comment.