Skip to content

Instantly share code, notes, and snippets.

@Sean-Bradley
Created April 17, 2019 07:25
Show Gist options
  • Save Sean-Bradley/b32c78a711b82b9c274a9d30eec3c11d to your computer and use it in GitHub Desktop.
Save Sean-Bradley/b32c78a711b82b9c274a9d30eec3c11d to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.0",
"info": {
"description": "sean",
"version": "1.0.0",
"title": "Seans-Python3-Flask-Rest-Boilerplate",
"contact": {
"email": "[email protected]"
},
"license": {
"name": "MIT",
"url": "https://opensource.org/licenses/MIT"
}
},
"components": {
"schemas": {
"id": {
"properties": {
"uuid": {
"type": "string"
}
}
},
"bookRequestPostBody": {
"type": "object",
"properties": {
"title": {
"type": "string",
"format": "string"
},
"email": {
"type": "string",
"format": "email"
}
}
},
"bookRequest": {
"type": "object",
"properties": {
"title": {
"type": "string",
"format": "string"
},
"email": {
"type": "string",
"format": "email"
},
"timestamp": {
"type": "string",
"format": "number"
}
}
},
"bookRequests": {
"type": "object",
"properties": {
"bookRequest": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/bookRequest"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment