api-spec-converter
Version:
Convert API descriptions between popular formats such as OpenAPI(fka Swagger), RAML, API Blueprint, WADL, etc.
46 lines (45 loc) • 836 B
JSON
{
"definitions": {
"Foo": {
"type": "string"
},
"Problem": {
"type": "string"
}
},
"info": {
"title": "test",
"version": "0.0.1"
},
"paths": {
"/foo": {
"get": {
"operationId": "getFoo",
"parameters": [],
"produces": [
"application/hal+json",
"application/problem+json"
],
"responses": {
"200": {
"description": "Foo",
"schema": {
"$ref": "#/definitions/Foo"
}
},
"default": {
"description": "Unexpected problem",
"schema": {
"$ref": "#/definitions/Problem"
}
}
},
"tags": [
"Foos"
]
}
}
},
"swagger": "2.0",
"x-components": {}
}