


You should PUT the resource on the server first. This should result in a resource not found error because does not exist yet. Use URLs to specify your objects, not your actions:Note what you first mentioned is not RESTful: /questions/show/Instead, you should use your URLs to specify your objects: /questions/Then you perform one of the below operations on that resource.Used to obtain a resource, query a list of resources, and also to query read-only information on a resource.To obtain a question resource: GET /questions/ HTTP/1.1To list all question resources: GET /questions HTTP/1.1Note that the following is an error: POST /questions/ HTTP/1.1If the URL is not yet created, you should not be using POST to create it while specifying the name. Below is a list of action verbs to assist you in describing your experiences and accomplishments: accelerated accomplished achieved acquired activated.NOTE– If it is something that can be or feel, it is not an action verb but a stative verb.When using action verbs, generally the structure of the sentence will be-Subject —> action verb —> the rest of the sentence ( adjective, adverb, noun, complement, or nothing).Here are examples of action verbs in sentences.(The action verb kicks.

It becomes: GET /question/Now you want your user to have another view of the same resource that allows him to edit the resource (maybe with form controls).Two options here, your application is an application (not a website), then you may be better using JavaScript to transform the resource into an editable resource ono the client side. Using GET to display it (retrieve it) is the common practice. It is designed to used for when you wish to send just a partial modification to a resource, it would be used much like PUT: PATCH /questions/ HTTP/1.1The difference is PUT has to send the entire resource, no matter how big it is compared to what's actually changed, whilst PATCH you can send just the changes.Here is a mapping of your current URLs using the REST principle: /question/show/If you identify the question as a resource, then it should have a unique URL. That said.This is a method that was defined in a formal RFC.
