REST API design principles
REST API, or RESTful API, describes an API that conforms to the REST architectural style using an HTTP-based interface for network communication. An API in its simplest form defines a set of rules that disparate systems or applications need to conform to in order to exchange data.
Dr. Roy Fielding, in the year 2000, presented a dissertation (https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm) that described a novel design approach that API designers are expected to follow in building applications that can stand the test of time in addition to being secure. In order to develop a RESTful system, there are architectural constraints that are worth keeping in mind.
We will examine those REST principles, such as client-server, statelessness, caching, uniform interface, layered system, and code on demand, to conform to a REST style guide.
Client-server
The REST API architecture encourages client and server communication. The client...