This commit is contained in:
Nell committed 2026-03-20 18:07:16 +01:00
1 parent 45b0bf00ee
commit 1342123990
25 files changed
+2023 -382

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"openapi":"3.1.0","info":{"title":"ox_speak_server","description":"","license":{"name":""},"version":"0.1.0"},"paths":{"/api/auth/claim-admin":{"post":{"tags":["auth"],"operationId":"claim_admin","responses":{"200":{"description":"Admin created successfully"},"400":{"description":"Bad request (token mismatch or user already exists)"},"500":{"description":"Internal server error"}}}},"/api/auth/login":{"post":{"tags":["auth"],"operationId":"login","responses":{"200":{"description":"Login successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Unauthorized"}}}},"/api/auth/ssh-challenge":{"post":{"tags":["auth"],"operationId":"ssh_challenge","responses":{"200":{"description":"SSH Challenge generated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SshChallengeResponse"}}}},"404":{"description":"User not found"}}}},"/api/category":{"get":{"tags":["category"],"operationId":"category_list","parameters":[{"name":"server_id","in":"query","description":"Filter by server ID","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"List of categories","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryResponse"}}}}}}},"post":{"tags":["category"],"operationId":"category_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryRequest"}}},"required":true},"responses":{"200":{"description":"Category created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"403":{"description":"Forbidden"}}}},"/api/category/{id}":{"get":{"tags":["category"],"operationId":"category_detail","parameters":[{"name":"id","in":"path","description":"Category ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Category details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"404":{"description":"Category not found"}}},"put":{"tags":["category"],"operationId":"category_update","parameters":[{"name":"id","in":"path","description":"Category ID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCategoryRequest"}}},"required":true},"responses":{"200":{"description":"Category updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Category not found"}}},"delete":{"tags":["category"],"operationId":"category_delete","parameters":[{"name":"id","in":"path","description":"Category ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Category deleted"},"403":{"description":"Forbidden"},"404":{"description":"Category not found"}}}},"/api/channel":{"get":{"tags":["channel"],"operationId":"channel_list","responses":{"200":{"description":"List of all channels","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChannelResponse"}}}}}}},"post":{"tags":["channel"],"operationId":"channel_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelRequest"}}},"required":true},"responses":{"200":{"description":"Channel created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelResponse"}}}},"403":{"description":"Forbidden"}}}},"/api/channel/{id}":{"get":{"tags":["channel"],"operationId":"channel_detail","parameters":[{"name":"id","in":"path","description":"Channel ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Channel details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelResponse"}}}},"404":{"description":"Channel not found"}}},"put":{"tags":["channel"],"operationId":"channel_update","parameters":[{"name":"id","in":"path","description":"Channel ID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelRequest"}}},"required":true},"responses":{"200":{"description":"Channel updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Channel not found"}}},"delete":{"tags":["channel"],"operationId":"channel_delete","parameters":[{"name":"id","in":"path","description":"Channel ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Channel deleted"},"403":{"description":"Forbidden"},"404":{"description":"Channel not found"}}}},"/api/message":{"get":{"tags":["message"],"operationId":"message_list","responses":{"200":{"description":"List of all messages","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/compoLine truncated