Files
EWF/examples/restbucks
Jocelyn Fiat 89572b4f33 Removed any (put|write)_file_content from the WSF_ or WGI_ OUTPUT classes
Now DEFAULT_SERVICE has to be created instead of inherited.
   - This seems to be better for new user, and this avoid potential conflict and difference when inheriting between the various DEFAULT_SERVICE implementation.
   - remember that DEFAULT_SERVICE, is mainly to help the user to build its very first service.
Use READABLE_STRING_8 as argument whenever it is possible.
Added WSF_RESPONSE_MESSAGE, and WSF_RESPONSE.put_response (a_response_message)
Now WSF_RESPONSE inherit from WGI_RESPONSE
2011-12-12 11:16:15 +01:00
..

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Restbuck Eiffel Implementation based on the book of REST in Practice


Verb         URI or template     Use
POST         /order              Create a new order, and upon success, receive a Locationheader specifying the new orders URI.
GET          /order/{orderId}    Request the current state of the order specified by the URI.
PUT          /order/{orderId}    Update an order at the given URI with new information, providing the full representation.
DELETE       /order/{orderId}    Logically remove the order identified by the given URI.


How to Create an order

    * Uri: http://localhost:8080/order
    * Method: POST
    * Note: you will get in the response the "location" of the new your order.
    * HEADERS:

      Content-Type: application/json

    * Example CONTENT
	     
  	      {
		"location":"takeAway",
		"items":[
		        {
		        "name":"Late",
		        "option":"skim",
		        "size":"Small",
		        "quantity":1
		        }
		    ]
		}



How to Read an order
    * Uri: http://localhost:8080/order/{order_id}
    * Method: GET




How to Update an order
    * Uri: http://localhost:8080/order/{order_id}
    * Method: PUT


How to Delete an order
    * Uri: http://localhost:8080/order/{order_id}
    * Method: DELETE