From f27c1f97a31a799040fa3868e428d1ef8ae632b1 Mon Sep 17 00:00:00 2001 From: jvelilla Date: Fri, 9 Dec 2011 18:59:23 -0200 Subject: [PATCH] Update examples/restbucksCRUD/readme.md --- examples/restbucksCRUD/readme.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/restbucksCRUD/readme.md b/examples/restbucksCRUD/readme.md index 1c292b84..84299d10 100644 --- a/examples/restbucksCRUD/readme.md +++ b/examples/restbucksCRUD/readme.md @@ -188,9 +188,14 @@ If is a Conditional GET and the resource does not change we send a 304, Resource How to Update an order ---------------------- - * Uri: http://localhost:8080/order/{order_id} - * Method: PUT - +Updating a resource with PUT. +A successful PUT request will not create a new resource, instead it will change the state of the resource identified by the current uri. +If success we response with 200 and the updated order. +404 if the order is not found +400 in case of a bad request +500 internal server error +If the request is a Conditional PUT, and it does not mat we response 415, precondition failed. + How to Delete an order ----------------------