docs: Add base path for API endpoints to Swagger

This commit is contained in:
Maksim Eltyshev
2025-09-08 18:25:26 +02:00
parent 68549d0da8
commit 5636cf27c0
99 changed files with 104 additions and 98 deletions
@@ -5,7 +5,7 @@
/**
* @swagger
* /api/access-tokens/accept-terms:
* /access-tokens/accept-terms:
* post:
* summary: Accept terms and conditions
* description: Accept terms during the authentication flow. Converts the pending token to an access token.
@@ -5,7 +5,7 @@
/**
* @swagger
* /api/access-tokens:
* /access-tokens:
* post:
* summary: User login
* description: Authenticates a user using email/username and password. Returns an access token for API authentication.
@@ -5,7 +5,7 @@
/**
* @swagger
* /api/access-tokens:
* /access-tokens:
* delete:
* summary: User logout
* description: Logs out the current user by deleting the session and access token. Clears HTTP-only cookies if present.
@@ -5,7 +5,7 @@
/**
* @swagger
* /api/access-tokens/exchange-with-oidc:
* /access-tokens/exchange-with-oidc:
* post:
* summary: Exchange OIDC code for access token
* description: Exchanges an OIDC authorization code for an access token. Creates a user if they do not exist.
@@ -5,7 +5,7 @@
/**
* @swagger
* /api/access-tokens/revoke-pending-token:
* /access-tokens/revoke-pending-token:
* post:
* summary: Revoke pending token
* description: Revokes a pending authentication token and cancels the authentication flow.