REST API


 

REST stands for REpresentational State Transfer 

API stands for Application Programming Interface

it is way with which 2 pieces of software can communicate with one another

Methods used in to access API are as follows

GET         is used to list or display data end point may be url/slug/id(optional)

POST        is used to create new data end point may be url/slug

PUT           is used used  to update data end point may be url/slug/id 

DELETE    is used to delete the data end point may be url/slug/id

PATCH        is used to update small portion of data end point may be url/slug/id


Software and every application are all about CURD operations

C    means Create which use POST method

U    means Update which use PUT and PATCH method

    means Retrieve/Read which use GET method

D    means Delete which use DELETE method

Comments