Best Practices REST & JSON API Design for Java Developers

JSON ( JavaScript Object Notation ) is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.

Here’s an example response from JSON API:

Important Point in JSON Restful API

1) JSON-based data formats in a RESTful API
2) References to other JSON-based resources (aka ‘linking’).
3) Resource collections and pagination
4) How to map (and how not to map) HTTP methods to Resource CRUD
5) Resource partial updates
6) Supporting HTTP Method Overloading for clients that don’t support HTTP PUT and DELETE
7) API versioning strategies
8) Meaningful Error responses
9) Many-to-many resource relationships
10) HTTP Caching and Optimistic concurrency control.
11) Authentication and Security

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs