UNPKG

api-spec-converter

Version:

Convert API descriptions between popular formats such as OpenAPI(fka Swagger), RAML, API Blueprint, WADL, etc.

74 lines (73 loc) 1.37 kB
{ "info": { "title": "testsickle", "version": "0.0.1" }, "paths": { "/user/account/{accountLevel}": { "post": { "parameters": [ { "in": "path", "name": "accountLevel", "required": true, "enum": [ "one", "two", "three", "four" ], "type": "string" } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/DefaultResponseObject" } } }, "produces": [ "application/json" ] } } }, "swagger": "2.0", "definitions": { "accountLevel": { "type": "string", "enum": [ "one", "two", "three", "four" ] }, "DefaultResponseObject": { "required": [ "message" ], "properties": { "message": { "type": "string" } } } }, "x-components": { "responses": { "defaultResponse": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "#/definitions/DefaultResponseObject" } } } } } } }