MeetUp/next-swagger-doc.json
Dominik Stahl 476114ca87
Some checks failed
container-scan / Container Scan (pull_request) Failing after 7m35s
docker-build / docker (pull_request) Failing after 11m56s
feat(api): add user search endpoint and normalize response data and validation
2025-06-17 21:50:52 +02:00

121 lines
3.6 KiB
JSON

{
"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"
}
}
},
"ZodErrorResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"default": false
},
"message": {
"type": "string",
"description": "Error message"
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": { "type": "string" },
"message": { "type": "string" }
}
}
}
}
},
"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" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
}
},
"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" }
}
},
"SimpleUser": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" }
}
},
"Participant": {
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/SimpleUser"
},
"status": { "type": "string" }
}
},
"Event": {
"type": "object",
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"description": { "type": "string" },
"start_time": { "type": "string", "format": "date-time" },
"end_time": { "type": "string", "format": "date-time" },
"status": { "type": "string" },
"location": { "type": "string" },
"organizer": {
"$ref": "#/components/schemas/SimpleUser"
},
"participants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"user": {
"$ref": "#/components/schemas/SimpleUser"
},
"status": { "type": "string" }
}
}
},
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
}
}
}
},
"security": []
}
}