-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
1 lines (1 loc) · 2.06 KB
/
swagger.json
1
{"swagger": "2.0", "info": {"title": "Snippets API", "description": "Test description", "termsOfService": "https://www.google.com/policies/terms/", "contact": {"email": "[email protected]"}, "license": {"name": "BSD License"}, "version": "v1"}, "host": "0.0.0.0:8060", "schemes": ["http"], "basePath": "/api", "consumes": ["application/json"], "produces": ["application/json"], "securityDefinitions": {"Basic": {"type": "basic"}}, "security": [{"Basic": []}], "paths": {"/authors": {"get": {"operationId": "authors_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/Author"}}}}, "tags": ["authors"]}, "parameters": []}, "/books": {"get": {"operationId": "books_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/Book"}}}}, "tags": ["books"]}, "parameters": []}, "/category": {"get": {"operationId": "category_list", "description": "", "parameters": [], "responses": {"200": {"description": "", "schema": {"type": "array", "items": {"$ref": "#/definitions/Category"}}}}, "tags": ["category"]}, "parameters": []}}, "definitions": {"Author": {"required": ["name"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "name": {"title": "Name", "type": "string", "maxLength": 255, "minLength": 1}}}, "Book": {"required": ["title", "category", "authors", "authors_names"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "title": {"title": "Title", "type": "string", "maxLength": 255, "minLength": 1}, "category": {"title": "Category", "type": "integer"}, "authors": {"type": "array", "items": {"type": "integer"}, "uniqueItems": true}, "authors_names": {"type": "array", "items": {"type": "string", "minLength": 1}}}}, "Category": {"required": ["title"], "type": "object", "properties": {"id": {"title": "ID", "type": "integer", "readOnly": true}, "title": {"title": "Title", "type": "string", "maxLength": 255, "minLength": 1}}}}}