Skip to content

Remove explicit api_token parameter from individual endpoints #2

Description

@jogold

The spec defines a global security scheme EODHDQueryKey (type apiKey, in query) and applies it at the top level:

security:                                                                                                 
  - EODHDQueryKey: [] 

However, every endpoint also declares api_token as an explicit required query parameter. This is redundant and causes issues with OpenAPI code generators: the generated SDK functions require callers to pass api_token manually on every call, defeating the purpose of centralized auth configuration.

The global security scheme alone is sufficient to describe the authentication mechanism. Removing the per-endpoint api_token parameter would:

  • Eliminate the duplication
  • Allow generated clients to handle auth transparently via a single configuration point
  • Better follow OpenAPI best practices for API key authentication

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions