feat(api): add endpoint for event creation and listing of all events

This commit is contained in:
Dominik 2025-06-13 16:43:36 +02:00 committed by Micha
parent 2e2b74b282
commit 2d3a6f7d6c

View file

@ -43,6 +43,34 @@
"image": { "type": "string", "format": "uri" }, "image": { "type": "string", "format": "uri" },
"timezone": { "type": "string", "description": "User timezone" } "timezone": { "type": "string", "description": "User timezone" }
} }
},
"SimpleUser": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "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": {
"$ref": "#/components/schemas/SimpleUser"
}
}
}
} }
} }
}, },