[api] chore: update api

This commit is contained in:
2026-06-25 11:26:20 +02:00
parent 3d86f9603d
commit 539c0216f5
20 changed files with 866 additions and 594 deletions

View File

@@ -5,14 +5,14 @@ info:
servers:
- url: /
paths:
/token:
/api/v1/token:
post:
operationId: login_for_access_token_token_post
operationId: login_for_access_token_api_v1_token_post
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: "#/components/schemas/Body_login_for_access_token_token_post"
$ref: "#/components/schemas/Body_login_for_access_token_api_v1_token_post"
required: true
responses:
"200":
@@ -30,9 +30,9 @@ paths:
summary: Login For Access Token
tags:
- Token
/test/login:
/api/v1/test/login:
get:
operationId: test_login_test_login_get
operationId: test_login_api_v1_test_login_get
responses:
"200":
content:
@@ -45,9 +45,9 @@ paths:
summary: Test Login
tags:
- Token
/users/:
/api/v1/users/:
get:
operationId: read_users_users__get
operationId: read_users_api_v1_users__get
responses:
"200":
content:
@@ -55,7 +55,7 @@ paths:
schema:
items:
$ref: "#/components/schemas/UserResponse"
title: Response Read Users Users Get
title: Response Read Users Api V1 Users Get
type: array
default: null
description: Successful Response
@@ -65,7 +65,7 @@ paths:
tags:
- Users
post:
operationId: create_user_users__post
operationId: create_user_api_v1_users__post
requestBody:
content:
application/json:
@@ -90,9 +90,24 @@ paths:
summary: Create User
tags:
- Users
/users/{user_id}:
/api/v1/users/current:
get:
operationId: get_current_user_api_v1_users_current_get
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/UserResponse"
description: Successful Response
security:
- OAuth2PasswordBearer: []
summary: Get Current User
tags:
- Users
/api/v1/users/{user_id}:
delete:
operationId: delete_user_users__user_id__delete
operationId: delete_user_api_v1_users__user_id__delete
parameters:
- explode: false
in: path
@@ -120,7 +135,7 @@ paths:
tags:
- Users
get:
operationId: read_user_users__user_id__get
operationId: read_user_api_v1_users__user_id__get
parameters:
- explode: false
in: path
@@ -149,7 +164,7 @@ paths:
tags:
- Users
patch:
operationId: update_user_users__user_id__patch
operationId: update_user_api_v1_users__user_id__patch
parameters:
- explode: false
in: path
@@ -183,9 +198,9 @@ paths:
summary: Update User
tags:
- Users
/groups/:
/api/v1/groups/:
get:
operationId: get_groups_groups__get
operationId: get_groups_api_v1_groups__get
responses:
"200":
content:
@@ -193,7 +208,7 @@ paths:
schema:
items:
$ref: "#/components/schemas/GroupResponse"
title: Response Get Groups Groups Get
title: Response Get Groups Api V1 Groups Get
type: array
default: null
description: Successful Response
@@ -203,7 +218,7 @@ paths:
tags:
- Group
post:
operationId: create_group_groups__post
operationId: create_group_api_v1_groups__post
requestBody:
content:
application/json:
@@ -228,9 +243,9 @@ paths:
summary: Create Group
tags:
- Group
/groups/{group_id}:
/api/v1/groups/{group_id}:
delete:
operationId: delete_group_groups__group_id__delete
operationId: delete_group_api_v1_groups__group_id__delete
parameters:
- explode: false
in: path
@@ -257,9 +272,9 @@ paths:
summary: Delete Group
tags:
- Group
/cards/{group_id}:
/api/v1/cards/{group_id}:
get:
operationId: get_cards_cards__group_id__get
operationId: get_cards_api_v1_cards__group_id__get
parameters:
- explode: false
in: path
@@ -276,7 +291,7 @@ paths:
schema:
items:
$ref: "#/components/schemas/Card"
title: Response Get Cards Cards Group Id Get
title: Response Get Cards Api V1 Cards Group Id Get
type: array
default: null
description: Successful Response
@@ -292,7 +307,7 @@ paths:
tags:
- Card
post:
operationId: add_card_cards__group_id__post
operationId: add_card_api_v1_cards__group_id__post
parameters:
- explode: false
in: path
@@ -320,9 +335,9 @@ paths:
summary: Add Card
tags:
- Card
/cards/delete:
/api/v1/cards/delete:
get:
operationId: del_card_cards_delete_get
operationId: del_card_api_v1_cards_delete_get
responses:
"200":
content:
@@ -334,9 +349,9 @@ paths:
summary: Del Card
tags:
- Card
/aa/:
/api/v1/aa/:
get:
operationId: get_all_accessauths_aa__get
operationId: get_all_accessauths_api_v1_aa__get
responses:
"200":
content:
@@ -344,7 +359,7 @@ paths:
schema:
items:
$ref: "#/components/schemas/AccessAuthorizationResponse"
title: Response Get All Accessauths Aa Get
title: Response Get All Accessauths Api V1 Aa Get
type: array
default: null
description: Successful Response
@@ -354,7 +369,7 @@ paths:
tags:
- AccessAuth
post:
operationId: add_accessauth_aa__post
operationId: add_accessauth_api_v1_aa__post
requestBody:
content:
application/json:
@@ -379,9 +394,9 @@ paths:
summary: Add Accessauth
tags:
- AccessAuth
/aa/{aa_id}:
/api/v1/aa/{aa_id}:
delete:
operationId: delete_accessauth_aa__aa_id__delete
operationId: delete_accessauth_api_v1_aa__aa_id__delete
parameters:
- explode: false
in: path
@@ -409,7 +424,7 @@ paths:
tags:
- AccessAuth
get:
operationId: get_one_accessauth_aa__aa_id__get
operationId: get_one_accessauth_api_v1_aa__aa_id__get
parameters:
- explode: false
in: path
@@ -438,7 +453,7 @@ paths:
tags:
- AccessAuth
patch:
operationId: change_accessauth_aa__aa_id__patch
operationId: change_accessauth_api_v1_aa__aa_id__patch
parameters:
- explode: false
in: path
@@ -472,9 +487,9 @@ paths:
summary: Change Accessauth
tags:
- AccessAuth
/aa/assign/{group_id}/{aa_id}:
/api/v1/aa/assign/{group_id}/{aa_id}:
put:
operationId: assign_accessauth_aa_assign__group_id___aa_id__put
operationId: assign_accessauth_api_v1_aa_assign__group_id___aa_id__put
parameters:
- explode: false
in: path
@@ -510,9 +525,9 @@ paths:
summary: Assign Accessauth
tags:
- AccessAuth
/aa/unassign/{group_id}/{aa_id}:
/api/v1/aa/unassign/{group_id}/{aa_id}:
put:
operationId: unassign_accessauth_aa_unassign__group_id___aa_id__put
operationId: unassign_accessauth_api_v1_aa_unassign__group_id___aa_id__put
parameters:
- explode: false
in: path
@@ -548,9 +563,9 @@ paths:
summary: Unassign Accessauth
tags:
- AccessAuth
/door/open:
/api/v1/door/open:
put:
operationId: open_door_door_open_put
operationId: open_door_api_v1_door_open_put
responses:
"200":
content:
@@ -562,9 +577,9 @@ paths:
summary: Open Door
tags:
- Door
/door/close:
/api/v1/door/close:
put:
operationId: open_door_door_close_put
operationId: open_door_api_v1_door_close_put
responses:
"200":
content:
@@ -576,9 +591,9 @@ paths:
summary: Open Door
tags:
- Door
/door/test:
/api/v1/door/test:
post:
operationId: test_access_door_test_post
operationId: test_access_api_v1_door_test_post
parameters:
- explode: true
in: query
@@ -603,10 +618,10 @@ paths:
summary: Test Access
tags:
- Door
/debug/addcard/{groupid}/{card_key}:
/api/v1/debug/addcard/{groupid}/{card_key}:
get:
description: Add cards manually (you also have to delete them manually)
operationId: add_card_manually_debug_addcard__groupid___card_key__get
operationId: add_card_manually_api_v1_debug_addcard__groupid___card_key__get
parameters:
- explode: false
in: path
@@ -641,9 +656,9 @@ paths:
summary: Add Card Manually
tags:
- Debug items - maybe dont show this in UI
/debug/rmcard/{card_key}:
/api/v1/debug/rmcard/{card_key}:
get:
operationId: remove_card_manually_debug_rmcard__card_key__get
operationId: remove_card_manually_api_v1_debug_rmcard__card_key__get
parameters:
- explode: false
in: path
@@ -670,9 +685,9 @@ paths:
summary: Remove Card Manually
tags:
- Debug items - maybe dont show this in UI
/debug/getcards:
/api/v1/debug/getcards:
put:
operationId: list_all_cards_debug_getcards_put
operationId: list_all_cards_api_v1_debug_getcards_put
responses:
"200":
content:
@@ -809,7 +824,7 @@ components:
type: array
default: null
title: AccessAuthorizationUpdate
Body_login_for_access_token_token_post:
Body_login_for_access_token_api_v1_token_post:
properties:
grant_type:
nullable: true
@@ -835,7 +850,7 @@ components:
required:
- password
- username
title: Body_login_for_access_token_token_post
title: Body_login_for_access_token_api_v1_token_post
Card:
example:
id: 6
@@ -955,8 +970,8 @@ components:
accessauth_id: 5
properties:
weekday:
maximum: 6
minimum: 0
maximum: 6.0
minimum: 0.0
title: Weekday
type: integer
starttime:
@@ -966,8 +981,8 @@ components:
duration:
exclusiveMaximum: true
exclusiveMinimum: true
maximum: 1440
minimum: 0
maximum: 1440.0
minimum: 0.0
title: Duration
type: integer
id:
@@ -988,8 +1003,8 @@ components:
duration: 867
properties:
weekday:
maximum: 6
minimum: 0
maximum: 6.0
minimum: 0.0
title: Weekday
type: integer
starttime:
@@ -999,8 +1014,8 @@ components:
duration:
exclusiveMaximum: true
exclusiveMinimum: true
maximum: 1440
minimum: 0
maximum: 1440.0
minimum: 0.0
title: Duration
type: integer
required:
@@ -1160,5 +1175,5 @@ components:
flows:
password:
scopes: {}
tokenUrl: token
tokenUrl: /api/v1/token
type: oauth2