DEV Community

Discussion on: API Design

Collapse
fillippeyton profile image
Fillip Peyton

Entities has got to be my #1 priority when interfacing with an API as well. Good call!

I don't agree with this one though.

Most of the time the client should be able to put the message field directly into the interface.

While the message should be a human readable message, its not readable if it is in a language the user does not understand. Either some sort of translation key should be sent or the client should translate a 401 into the appropriate translation.

Collapse
kyleparisi profile image
Kyle Parisi Author

Good point.