REST is an architectural paradigm and RESTful is used as an adjective describing something that respects the REST constraints. REST stands for REpresentational State Transfer. It is a way of interacting with resources on the web via plain human-readable URLs.
Any interaction of a RESTful API is an interaction with a resource. In fact, the API can be considered simply as mapping and endpoint—or resource identifier (URL)—to a resource. Resources are sources of information, typically documents or services. An HTTP-based REST API makes communicating with the database easier, because so many modern environments are capable of talking HTTP. The simple structure of HTTP resources and methods is easy to understand and develop with.
The REST interface defines four commonly used HTTP main verbs: GET
, POST
, PUT
, and DELETE
, and others that are not used as often such as HEAD
, OPTIONS
, and so on. Each verb has certain characteristics and it is critical to choose the right verb.
The GET...