Update examples/restbucksCRUD/readme.md
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
Restbuck Eiffel Implementation based on the book of REST in Practice
|
Restbuck Eiffel Implementation based on the book of REST in Practice
|
||||||
====================================================================
|
====================================================================
|
||||||
This is an implementation of CRUD pattern for manipulate resources, this is the first step to use
|
This is an ihmplementation of CRUD pattern for manipulate resources, this is the first step to use
|
||||||
the HTTP protocol as an application protocol instead of a transport protocol.
|
the HTTP protocol as an application protocol instead of a transport protocol.
|
||||||
|
|
||||||
|
Restbuck Protocol
|
||||||
|
-----------------
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<TR><TH>Verb</TH> <TH>URI or template</TH> <TH>Use</TH></TR>
|
<TR><TH>Verb</TH> <TH>URI or template</TH> <TH>Use</TH></TR>
|
||||||
<TR><TD>POST</TD> <TD>/order</TD> <TD>Create a new order, and upon success, receive a Locationheader specifying the new order's URI.</TD></TR>
|
<TR><TD>POST</TD> <TD>/order</TD> <TD>Create a new order, and upon success, receive a Locationheader specifying the new order's URI.</TD></TR>
|
||||||
@@ -10,6 +14,14 @@ the HTTP protocol as an application protocol instead of a transport protocol.
|
|||||||
<TR><TD>DELETE</TD> <TD>/order/{orderId}</TD> <TD>Logically remove the order identified by the given URI.</TD></TR>
|
<TR><TD>DELETE</TD> <TD>/order/{orderId}</TD> <TD>Logically remove the order identified by the given URI.</TD></TR>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Resource Represenation
|
||||||
|
----------------------
|
||||||
|
The previous tables shows a contrat, the URI or URI template, allows us to indentify resources, now we will chose a
|
||||||
|
representacion, for this particular case we will use JSON.
|
||||||
|
|
||||||
|
Note: _A resource can have multiple URIs_
|
||||||
|
_A resource can have multuple Representations_
|
||||||
|
|
||||||
RESTBUCKS_SERVER
|
RESTBUCKS_SERVER
|
||||||
----------------
|
----------------
|
||||||
This class implement the main entry of our REST CRUD service, we are using a default connector (Nino Connector,
|
This class implement the main entry of our REST CRUD service, we are using a default connector (Nino Connector,
|
||||||
|
|||||||
Reference in New Issue
Block a user