Skip to content

API to get lineups doesn't return "code" #47

Open
@ronf

Description

@ronf

When testing the API to get the current set of lineups, I noticed that the returned JSON doesn't have a 'code' value like most of the other APIs. I was hoping I could count on this being present in all return values, so I could keep my error handling in a common function, always looking for 'code' to be 0 to indicate success.

Also, if you call this API when there are no lineups added for the user, it returns an HTTP 400 Bad Request error. It would be better to return an empty list here, or at least some kind of JSON error rather than an HTTP error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions