Open
Description
Description
The OpenAPI specification for the /api/user/
endpoint incorrectly states that an API key is not required for authentication. However, an API key is necessary to access this endpoint, unless a valid JWT is provided.
Expected Behavior
The OpenAPI specification and API documentation should accurately reflect the following:
- JWT Authentication:
- If a valid JWT is provided, the endpoint returns user information based on the JWT, ignoring any query parameters.
- API Key Authentication:
- If no JWT is provided, an API key is required.
- With a valid API key, the endpoint returns user information based on the provided query parameters (e.g., email, username).