3

So I've been reading about rest api and I purpose there should be a standardized keyword for message

like 'errorMsg', 'msg', or just 'message'

I m kind of tired of discovering new acronym for error message or message every time I write a REST service

Comments
  • 1
    The problem is there is no official standard every one is following only design principles and even there there are disagreements on actual implementation.

    Tools like swagger try to unify things and present them in a common format but one of the reasons rest has spread so fast is the freedom of implementation that make it very easy to get started without having to go over some heavy standard doument.
  • 0
    We have a rule of using "exc" in java and "err" in other languages with my team

    Other than that, we usually use "body" for bulk info
  • 0
    From what I know REST only tells you how to make the routes and that you have to supply related routes in the response.
Add Comment