I’m trying to write a REST API. I honestly do not know anything related to REST structure so I’ve done some research and find a valuable information that one of the key things that separates REST from other structures is that it utilizes the ‘GET’,’POST’,’PUT’,’DELETE’ requests of HTTP.
This might come out silly but how can i control the request type. For example if I code it and simply enter a URL http://www.example.com/users/1234 , how will my server side analyze whether its a GET,POST,PUT or DELETE request.
Sorry if I’m asking an obvious question, but I would love have some information related to this subject
A good place to start is by looking at the SO wiki associated with the rest tag. This is a part of SO that is so often overlooked as a great source of information. Just hover over the tag and select the “info” link.