Cleaned up api client sources

This commit is contained in:
2025-05-31 12:03:58 +02:00
parent 6950ac62e8
commit 156be1821a
31 changed files with 34 additions and 984 deletions

View File

@@ -39,6 +39,12 @@ paths:
$ref: '#/components/responses/FailureResponse'
description: 'Create a new user given a registration token and user information, username and email must be unique, and password and password_repeat must match.'
parameters: []
get:
description: 'Get a user from primary id'
parameters: []
responses:
'200':
$ref: '#/components/responses/UserResponse'
/gamenights:
get:
summary: Your GET endpoint
@@ -97,11 +103,16 @@ components:
type: string
owner_id:
type: string
participants:
type: array
items:
type: string
required:
- id
- name
- datetime
- owner_id
- participants
Failure:
title: Failure
type: object
@@ -219,11 +230,17 @@ components:
items:
$ref: '#/components/schemas/Gamenight'
GamenightResponse:
description: Example response
description: A gamenight being hosted
content:
application/json:
schema:
$ref: '#/components/schemas/Gamenight'
UserResponse:
description: A user in the gamenight system
content:
application/json:
schema:
$ref: '#/components/schemas/User'
securitySchemes:
JWT-Auth:
type: http