Java Reference
In-Depth Information
...
}
}
The code contains two methods:
testCustomerResource()
and
testFirstLastCustomer-
Resource()
.
The
testCustomerResource()
method first performs a POST to
/customers/europe-db
to create a customer using the
CustomerResource
subresource. It then retrieves the created
customer using
GET /customers/europe-db/1
.
The
testFirstLastCustomerResource()
method performs a POST to
/customers/
northamerica-db
to create a customer using the
FirstLastCustomerResource
subre-
source. It then uses
GET /customers/northamerica-db/Bill-Burke
to retrieve the created
customer.
[
21
]
For more information, see
http://www.ietf.org/rfc/rfc2068.txt
.

