Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

API Docs Return types wrong #347

@CrispyBacon1999

Description

@CrispyBacon1999

Describe the bug
The api docs show some of the data return types correctly, but the api doesn't match what is actually returned for some endpoints. Specifically /event/:event-key, /team/:team-key, /match/:match-key.
These endpoints return an array containing a single object instead of the documented object type.

Steps to reproduce the issue

  1. Use api/event/:event-key
  2. Look at the json data returned

Expected behavior
Endpoints should return Team, not Team[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions