Skip to content

(Misc) Ensure consistent response format #23

@thepetk

Description

@thepetk

Issue Details

Every response of the API should have a specific format so the client should always expect the same structure from their side.

Workaround

That said, for every return statement inside the routes.py is good to have the following response:

return jsonify({
    "title": "some-title",
    "msg": "some-message",
}), 200 # or other code

Metadata

Metadata

Labels

apibugSomething isn't working

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions