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.

69 lines 2.1 kB
{ "swagger": "2.0", "info": { "title": "Object Type Client", "description": "Service client for testing basic type: object swaggers", "version": "1.0.0" }, "host": "localhost:3000", "schemes": [ "http" ], "produces": [ "application/json"], "paths": { "/objectType/get": { "get": { "operationId": "get", "description": "Basic get that returns an object", "responses": { "200": { "description": "The empty return value of testOne", "schema": { "$ref": "#/definitions/Object" } }, "default": { "description": "Unexpected error", "schema": { "$ref": "#/definitions/Object" } } } } }, "/objectType/put": { "put": { "operationId": "put", "description": "Basic put that puts an object", "parameters": [ { "name": "putObject", "in": "body", "required": true, "schema": { "type": "object", "properties": {} } } ], "responses": { "200": { "description": "The empty return value" }, "default": { "description": "Unexpected error", "schema": { "$ref": "#/definitions/Object" } } } } } }, "definitions": { "Object": { "type": "object", "properties": {} } } }