I think I have a basic understanding of REST, but something I'm stuck on is how to request an HTML form to edit a resource.
To my understanding, if the resource is
user/12
And you do a GET on that with content-type "text/html" then you would get some html back that would display the details of that user.
What I don't understand is how to get back html that will display a form that allows you to edit the details of a user (and ultimately send a PUT back to update the user.)
I've seen:
user/12/edit
user/12;edit
Which don't feel super RESTful to me. Personally, knowing nothing else (including whether or not it is valid) I'd consider passing some kind of edit=true parameter on the "Accept:" line of the HTTP header.
Is there a definitive way of doing it?
Edit: I should have explained that I'm implementing the service and wanted to know the proper way of doing it if such existed.