BP146: Do not return plain text

While returning plain text is not against RESTful constraints, it's a good practice to return structured data in the response body so that it can be easily parsed by the client.

JSON or XML might be a good condidate for the data format. Content negotiation mechanism should be used.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play