I have read some tutorials on REST API development, One thing i could not understand how a single url worked for different HTTP Request methods for example
GET : api/users/1
POST: api/users/1
PUT: api/users/1
In these cases all urls are same, but action is different. my question is how a API detect the HTTP request method ?? is that HTTP Request method mentioned in url or it can detect automatically?? in php
please clarify me..
Sorry for my poor English..
thanks in advance..