Skip to content

POST contributions/ - Return Sensible Error Messages #10

Description

@Ore4444

https://github.com/Backfeed/backfeed-restapi/blob/master/restapi/views/contributions.py#L30

The POST contributions/ endpoint should return:

{
    "errorMessage": "user_id parameter is missing"
}

when user_id is missing from the POST object.

It should also return:

{
    "errorMessage": "user_id does not belong to a real user"
}

when get_user(user_id) cannot find a user with that ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions