api-spec-converter
Version:
Convert API descriptions between popular formats such as OpenAPI(fka Swagger), RAML, API Blueprint, WADL, etc.
70 lines (69 loc) • 1.28 kB
JSON
{
"definitions": {
"DefaultResponseObject": {
"properties": {
"message": {
"type": "string"
}
},
"required": [
"message"
]
},
"accountLevel": {
"enum": [
"one",
"two",
"three",
"four"
],
"type": "string"
}
},
"info": {
"title": "testsickle",
"version": "0.0.1"
},
"paths": {
"/user/account/{accountLevel}": {
"post": {
"parameters": [
{
"enum": [
"one",
"two",
"three",
"four"
],
"in": "path",
"name": "accountLevel",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/DefaultResponseObject"
}
}
}
}
}
},
"swagger": "2.0",
"x-components": {
"responses": {
"defaultResponse": {
"description": "Success",
"schema": {
"$ref": "#/definitions/DefaultResponseObject"
}
}
}
}
}