Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: feat: add more OpenAPI specs #3198

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added /api/me endpoint
Vito0912 committed Jul 30, 2024
commit b0d85a8dd92173dadae2f1d818c466711c356e82
15 changes: 14 additions & 1 deletion docs/controllers/MeController.yaml
Original file line number Diff line number Diff line change
@@ -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 modified docs/openapi.json
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/root.yaml
Original file line number Diff line number Diff line change
@@ -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