UNPKG

@microsoft.azure/autorest.testserver

Version:

This project contains a set of OpenAPI definitions and a server implementing the corresponding API. Use this to test compliance of AutoRest generators.

83 lines (82 loc) 2.05 kB
{ "swagger": "2.0", "info": { "title": "AutoRest Parameter Flattening", "description": "Resource Flattening for AutoRest", "version": "1.0.0", "x-ms-code-generation-settings": { "ft": 2 } }, "host": "localhost:3000", "schemes": [ "http" ], "produces": [ "application/json" ], "consumes": [ "application/json" ], "paths": { "/parameterFlattening/{resourceGroupName}/{availabilitySetName}": { "patch": { "tags": [ "AvailabilitySets" ], "operationId": "AvailabilitySets_Update", "description": "Updates the tags for an availability set.", "parameters": [ { "name": "resourceGroupName", "in": "path", "required": true, "type": "string", "description": "The name of the resource group." }, { "name": "availabilitySetName", "x-ms-client-name": "avset", "in": "path", "required": true, "type": "string", "description": "The name of the storage availability set.", "maxLength": 80 }, { "name": "tags", "in": "body", "required": true, "schema": { "$ref": "#/definitions/AvailabilitySetUpdateParameters" }, "description": "The tags." } ], "responses": { "200": { "description": "" } } } } }, "definitions": { "AvailabilitySetUpdateParameters": { "type": "object", "properties": { "tags": { "type": "object", "title": "A set of tags.", "description": "A description about the set of tags.", "additionalProperties": { "type": "string" } } }, "required": [ "tags" ] } } }