After setting up your environment, you can run the application. Here is a description of what you can do and how the application will behave.

This is the last post before we get deep into the code.

The first thing you will see when you run the application is this:

2011-05-26_2102_thumb2_thumb

Yes, there is no GUI for this application. It is an example of a backend system :)

For testing purposes, I recommend you to use Fiddler.

Fiddler, let you watch the http request and responses going on:

2011-05-26_2105_thumb2_thumb

The application is self documented. There is a doc folder and you will find there some htms explaining how to use the application:

2011-05-26_2108_thumb4_thumb

Then, if you open the Create an Order page you will see this:

2011-05-26_2112_thumb2_thumb

And then you can copy&past this information in the Fiddler “Request Builder”:

2011-05-26_2111_thumb3_thumb

And then Execute:

2011-05-26_2115_thumb2_thumb

Now, we got a 201-Created and the Location, we can copy the value of the Location header, and past it into our browser. You will see something as follows:

2011-05-26_2121_thumb2_thumb

Notice; that this give you few other things apart from what you POSTed:

  • The total cost of your order.
  • The status of your order.
  • The links of the things you can do with your order.

Each link has the URI for the resource as well as the “relation” link. If you follow the relation link in the browser, you will see all the information you need to do that operation.

Once you paid your order, your order will remind as “Paid” until the barista prepare it. The barista run in parallel and will pop and prepare one order every 60s. Feel free to explore the Barista.cs class :)

That is all, in the next articles we will jump into the use cases.

Last edited May 31, 2011 at 1:41 PM by jfromaniello, version 1

Comments

No comments yet.