Added /api/me endpoint

This commit is contained in:
Vito0912 2024-07-30 17:37:22 +02:00
parent 9b3cb4ed33
commit b0d85a8dd9
3 changed files with 16 additions and 1 deletions

View file

@ -1,2 +1,15 @@
paths:
/api/me:
get:
operationId: getMe
summary: Get the current user.
description: Get the current user.
tags:
- Me
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '../objects/entities/User.yaml#/components/schemas/user'

Binary file not shown.

View file

@ -85,6 +85,8 @@ paths:
$ref: './controllers/LibraryItemController.yaml#/paths/~1api~1items~1{id}'
/api/items/{id}/play/{episodeId}:
$ref: './controllers/LibraryItemController.yaml#/paths/~1api~1items~1{id}~1play~1{episodeId}'
/api/me:
$ref: './controllers/MeController.yaml#/paths/~1api~1me'
tags:
- name: Authors
description: Author endpoints