Child pages
  • Chapter 2 - Discovery - Testing access to the web service with the browser

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<customers xlink:href="http://mystore.com/api/customers" get="true" put="true" post="true" delete="true" head="true">

Wiki MarkupThe get, put, post, and delete attributes have the value "true," meaning that you have correctly configured the "customers" resource and that it is accessible. \\
You can now use the "XLink" that shows up on the URL "http://mystore.com/api/customers" and go to it. \\
Once the client list is displayed via "http://example.com/store/api/customers" you can access the XLink corresponding to each customer. <span style="color: #79b51c"><strong>Example:</strong></span> The XML file found on\[ \|
Example:
The XML file found on http://wwwmystore.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA\][<span style="color: #000099"><span style="text-decoration: underline; ">http</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">://</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">mystore</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">.</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">com</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">/</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">api</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">/</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">customers</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA][<span style="color: #000099"><span style="text-decoration: underline; ">/1</span></span>|http://www.google.com/url?q=http%3A%2F%2Fmystore.com%2Fapi%2Fcustomers%2F1&sa=D&sntz=1&usg=AFQjCNG4Cw5TyYHAyUnB39hxa1BRm6L-wA] whose link is found in the list of clients (see previous link) will give you the properties of customers that have '1' as their ID. \\ You can also browse the web service to access all resources in XML. \\ \\com/api/customers/1 whose link is found in the list of clients (see previous link) will give you the properties of customers that have '1' as their ID.
You can also browse the web service to access all resources in XML.