You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
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
Use api/event/:event-key
Look at the json data returned
Expected behavior
Endpoints should return Team, not Team[]
The text was updated successfully, but these errors were encountered:
This is the intended response. To normalize the responses of the API, even single object requests return in a 1-object array. The API docs will be updated to reflect this.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Expected behavior
Endpoints should return
Team
, notTeam[]
The text was updated successfully, but these errors were encountered: