Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema resource added in REST API Spec for api-version 2021-08-01 #16715

Merged
merged 52 commits into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
0c8648f
Adds base for updating Microsoft.ApiManagement from version preview/2…
solankisamir Jun 15, 2021
3db09f1
Updates readme
solankisamir Jun 15, 2021
785eaab
Updates API version in new specs and examples
solankisamir Jun 15, 2021
3d2e43a
Added support for GraphQL API type (#14851)
azaslonov Jun 17, 2021
e38dbf0
add schema definition fix from 2021-01-01-preview (#14883)
Jun 21, 2021
f322a47
Vanguard: Get Outbound Network Dependency (#14900)
solankisamir Jul 2, 2021
bbabd9c
Update backup/restore API for managed identities (#14973)
JatinSanghvi Jul 5, 2021
1018cb0
SystemData implemenation on API Management Control Plane (#14899)
solankisamir Jul 5, 2021
e8680fd
APIM - Network Watcher Connectivity Check integration specs (#15056)
atharos1 Jul 23, 2021
5824638
Parameter examples added (#14836)
VitaliyKurokhtin Jul 27, 2021
dc54a09
platformversion (#15114)
solankisamir Jul 29, 2021
b9e497e
fix update service (#15478)
solankisamir Aug 3, 2021
ff76d20
HttpConnect example (#15493)
atharos1 Aug 4, 2021
1ad8428
Rename from SchemaContract to ApiSchemaContract
Aug 13, 2021
18ce3ca
apimschema.json added to last apim preview version
Aug 16, 2021
cb92937
Completing specification for Schema resource.
Aug 16, 2021
8f90630
Value field added to Schema resource specification.
Aug 17, 2021
0fa5523
path fixed.
Aug 20, 2021
a7ac04a
Fixing PR observations.
Aug 20, 2021
6e13784
Added properties of difference API spec format for "SchemaDocumentPro…
Aug 24, 2021
df36b4f
[APIM]Add private endpoint connection APIs (#15115)
RupengLiu Aug 27, 2021
77dbbb2
Adds base for updating Microsoft.ApiManagement from version preview/2…
solankisamir Sep 23, 2021
8daf11c
Updates readme
solankisamir Sep 23, 2021
f3d4ad1
Updates API version in new specs and examples
solankisamir Sep 23, 2021
33b8252
Merge changes
Sep 28, 2021
ab49a54
Merge main
Sep 28, 2021
4702207
Modifications to Schema definition to add "description" field.
Sep 28, 2021
77777a5
Merge from main
Sep 29, 2021
0ef5038
Fixing apimanagement.json
Sep 29, 2021
4fb0b7b
Prettier applied in files
Sep 29, 2021
610e3cb
Fixing PR comments
Sep 29, 2021
789f4c2
fixing x-ms-long-running-operation.
Sep 29, 2021
40ccd4d
x-ms-long-running-operation : true in apischema.
Sep 29, 2021
b4b1d85
Removing "Resource" type from apimanagement.json
Sep 30, 2021
aca685b
Merge branch 'Azure:apim-2021-04-01-preview' into apim-2021-04-01-pre…
shinjiDev Nov 9, 2021
fb0dfd8
Apimschema.json updated to point to types.json for ErrorResponse.
Nov 9, 2021
8d67570
Merge branch 'apim-2021-04-01-preview' into apim-2021-08-01
Nov 9, 2021
25c05e3
Merging from 2021-04-01-preview to 2021-08-01 stable version.
Nov 9, 2021
bb84d15
undoing change of responseBody
Nov 9, 2021
5ac7681
Merge branch 'apim-2021-04-01-preview' of https://github.com/shinjiDe…
Nov 9, 2021
4e6dbff
Updating ErrorResponse.
Nov 9, 2021
634726a
Fixing definitions merge.
Nov 9, 2021
c81cf94
Merge branch 'apim-2021-04-01-preview' into apim-2021-08-01
Nov 9, 2021
3401d7e
Changing definitions to fix output of examples.
Nov 9, 2021
f39dcfa
Changes in definitions
Nov 9, 2021
85c7f7d
Updating response in some examples.
Nov 30, 2021
0168af9
Merge branch 'main' into apim-2021-08-01
shinjiDev Dec 1, 2021
df0adf5
Rolling back
Dec 2, 2021
cb14d14
Merge branch 'main' of https://github.com/shinjiDev/azure-rest-api-sp…
Dec 2, 2021
5e52281
Merge branch 'apim-2021-08-01' of https://github.com/shinjiDev/azure-…
Dec 2, 2021
035e2fa
Changes to undo apimapis.json and adding prefix for Global example Sc…
Dec 2, 2021
b2fb6c2
Setting x-ms-long-running-operation-options to location.
Dec 10, 2021
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
Expand Up @@ -607,17 +607,6 @@
"description": "The name of the resource group.",
"x-ms-parameter-location": "method"
},
"SchemaIdParameter": {
"name": "schemaId",
"in": "path",
"required": true,
"type": "string",
"description": "Schema identifier within an API. Must be unique in the current API Management service instance.",
"minLength": 1,
"maxLength": 80,
"pattern": "^[^*#&+:<>?]+$",
"x-ms-parameter-location": "method"
},
"ServiceNameParameter": {
"name": "serviceName",
"in": "path",
Expand Down Expand Up @@ -765,6 +754,16 @@
"minLength": 1,
"maxLength": 80,
"x-ms-parameter-location": "method"
},
"SchemaIdParameter": {
"name": "schemaId",
"in": "path",
"required": true,
"type": "string",
"description": "Schema id identifier. Must be unique in the current API Management service instance.",
"minLength": 1,
"maxLength": 80,
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,328 @@
{
"swagger": "2.0",
"info": {
"title": "ApiManagementClient",
"description": "Use these REST APIs for performing operations on Schema entity in Azure API Management deployment.",
"version": "2021-08-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas": {
"get": {
"tags": [
"Schema"
],
"operationId": "GlobalSchema_ListByService",
"description": "Lists a collection of schemas registered with service instance.",
"x-ms-examples": {
"ApiManagementListSchemas": {
"$ref": "./examples/ApiManagementListGlobalSchemas.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"name": "$filter",
"in": "query",
"required": false,
"type": "string",
"description": "| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>"
},
{
"$ref": "./apimanagement.json#/parameters/TopQueryParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SkipQueryParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Lists a collection of Schema entities.",
"schema": {
"$ref": "./definitions.json#/definitions/GlobalSchemaCollection"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-odata": "./definitions.json#/definitions/GlobalSchemaContract"
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}": {
"head": {
shinjiDev marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"Schema"
],
"operationId": "GlobalSchema_GetEntityTag",
"description": "Gets the entity state (Etag) version of the Schema specified by its identifier.",
"x-ms-examples": {
"ApiManagementHeadApi": {
"$ref": "./examples/ApiManagementHeadGlobalSchema.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SchemaIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Specified Schema entity exists and current entity state version is present in the ETag header.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"get": {
"tags": [
"Schema"
],
"operationId": "GlobalSchema_Get",
"description": "Gets the details of the Schema specified by its identifier.",
"x-ms-examples": {
"ApiManagementGetSchema1": {
"$ref": "./examples/ApiManagementGetGlobalSchema1.json"
},
"ApiManagementGetSchema2": {
"$ref": "./examples/ApiManagementGetGlobalSchema2.json"
}
},
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SchemaIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The response body contains the specified Schema entity.",
"schema": {
"$ref": "./definitions.json#/definitions/GlobalSchemaContract"
},
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
},
"put": {
"tags": [
"Schema"
],
"operationId": "GlobalSchema_CreateOrUpdate",
"description": "Creates new or updates existing specified Schema of the API Management service instance.",
"x-ms-examples": {
"ApiManagementCreateSchema1": {
"$ref": "./examples/ApiManagementCreateGlobalSchema1.json"
},
"ApiManagementCreateSchema2": {
"$ref": "./examples/ApiManagementCreateGlobalSchema2.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SchemaIdParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "./definitions.json#/definitions/GlobalSchemaContract"
},
"description": "Create or update parameters."
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"201": {
"description": "The new Schema was successfully added.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
},
"schema": {
"$ref": "./definitions.json#/definitions/GlobalSchemaContract"
}
},
"200": {
"description": "The Schema details were successfully updated.",
"headers": {
"ETag": {
"description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.",
"type": "string"
}
},
"schema": {
"$ref": "./definitions.json#/definitions/GlobalSchemaContract"
}
},
"202": {
shinjiDev marked this conversation as resolved.
Show resolved Hide resolved
"description": "Accepted the change when updating the service."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
shinjiDev marked this conversation as resolved.
Show resolved Hide resolved
},
"delete": {
"tags": [
"Schema"
],
"operationId": "GlobalSchema_Delete",
"description": "Deletes specific Schema.",
"x-ms-examples": {
"ApiManagementDeleteSchema": {
"$ref": "./examples/ApiManagementDeleteGlobalSchema.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SchemaIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "The Schema was successfully deleted."
},
"204": {
"description": "The Schema was successfully deleted."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {},
"parameters": {}
}
Loading