From fe2d1ff0f3d8e9c111fa58a36fa292378b0de214 Mon Sep 17 00:00:00 2001 From: Dominik Stahl Date: Thu, 12 Jun 2025 19:47:05 +0200 Subject: [PATCH] feat(api): add react-query client generation and redesign api responses --- next-swagger-doc.json | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 next-swagger-doc.json 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