Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Simplify REST responses #36

Open
forman opened this issue Mar 9, 2020 · 0 comments
Open

Simplify REST responses #36

forman opened this issue Mar 9, 2020 · 0 comments

Comments

@forman
Copy link
Member

forman commented Mar 9, 2020

Cate web API's JSON responses

{
     "status": "some status" ,
     "content": {
         // the result
    }
}

should be simplified to

{
    // the result
}

because this adds another error layer. HTTP error codes are more than enough to report failures. This simplifies error handling.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant