What exactly is RESTful programming?
This is what it might look like.
Create a user with three properties:
POST /user
fname=John&lname=Doe&age=25
The server responds:
200 OK
Location: /user/123
In the future, you can then retrieve the user information:
GET /user/123
The server responds:
200 OK
John Doe 25
To modify the record (lname
and age
will remain unchanged):
PATCH /user/123
fname=Johnny
To update the record (and consequently lname
and age
will be NULL):
PUT /user/123
fname=Johnny