Best Practices REST & JSON API Design for Java Developers

Prem Tiwari - - Java Programming

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

Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

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.