Skip to content

Discrepancy in OpenAPI specification for /api/user/ endpoint #20

Open
@sgennrw

Description

@sgennrw

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:

  1. JWT Authentication:
    • If a valid JWT is provided, the endpoint returns user information based on the JWT, ignoring any query parameters.
  2. 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions