diff --git a/next-swagger-doc.json b/next-swagger-doc.json new file mode 100644 index 0000000..78b2e99 --- /dev/null +++ b/next-swagger-doc.json @@ -0,0 +1,51 @@ +{ + "apiFolder": "src/app/api", + "definition": { + "openapi": "3.0.0", + "info": { + "title": "MeetUP API", + "version": "1.0" + }, + "components": { + "schemas": { + "ErrorResponse": { + "type": "object", + "properties": { + "success": { + "type": "boolean", + "default": false + }, + "message": { + "type": "string", + "description": "Error message" + } + } + }, + "User": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" }, + "first_name": { "type": "string" }, + "last_name": { "type": "string" }, + "email": { "type": "string", "format": "email" }, + "image": { "type": "string", "format": "uri" }, + "timezone": { "type": "string", "description": "User timezone" } + } + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" }, + "first_name": { "type": "string" }, + "last_name": { "type": "string" }, + "image": { "type": "string", "format": "uri" }, + "timezone": { "type": "string", "description": "User timezone" } + } + } + } + }, + "security": [] + } +} \ No newline at end of file