Wiredcraft / test-backend

39 stars 76 forks source link

Implemented restful API for Wiredcraft User Table #61

Closed eronekogin closed 3 years ago

eronekogin commented 3 years ago

The restful API provides general functions as follows:

MiffyLiye commented 3 years ago

the http response status code is always 200, and has code 200, 201, 400, etc. in response body, which is not typical REST style, can you list the points that you think is essential for REST API design?

eronekogin commented 3 years ago

the http response status code is always 200, and has code 200, 201, 400, etc. in response body, which is not typical REST style, can you list the points that you think is essential for REST API design?

Standard REST API style:

{
    "error": "Error message text"
}

About the status code and response for the current version of this application:

xavierchow commented 3 years ago

Thanks all, that's good enough for our evaluation, I'm gonna close this PR.

@eronekogin We will reach out to you soon.