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.

98 lines 3.15 kB
{ "swagger": "2.0", "info": { "title": "Multiapi Service Client", "description": "Service client for multiapi client testing", "version": "1.0.0" }, "host": "localhost:3000", "produces": [ "application/json" ], "paths": { "/multiapi/testOneEndpoint": { "put": { "operationId": "testOne", "description": "TestOne should be in an FirstVersionOperationsMixin", "x-ms-request-id": "request-id", "parameters": [ { "name": "id", "in": "query", "description": "An int parameter", "type": "integer", "format": "int32", "required": true }, { "name": "message", "in": "query", "description": "An optional string parameter", "type": "string" }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "The empty return value of testOne" }, "default": { "description": "Unexpected error", "schema": { "$ref": "#/definitions/Error" } } } } }, "/multiapi/one/testTwoEndpoint": { "get": { "operationId": "OperationGroupOne_testTwo", "description": "TestTwo should be in OperationGroupOneOperations", "x-ms-request-id": "request-id", "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "The empty return value of testTwo" }, "default": { "description": "Unexpected error", "schema": { "$ref": "#/definitions/Error" } } } } } }, "definitions": { "Error": { "type": "object", "properties": { "status": { "type": "integer", "format": "int32" }, "message": { "type": "string" } } } }, "parameters": { "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, "type": "string", "description": "The API version to use for this operation.", "minLength": 1 } } }