Chapter Exercise
In this exercise, you’ll get a chance to create some sketches for the CreditCheck service we’ve been working on throughout the book. Starting from the diagram you created in the exercise in Chapter 5 (Chapter Exercise), use the Apiary editor to create a number of sketches.
First, create a simple HTML sketch that just contains the URL resources for your API, with notes on what will appear on each resource. Don’t worry about filling in the resource pages with data; just define each resource to support HTTP GET. This sketch should give you an idea of the number of URLs you’ll need when you finally code your API.
Second, create a new sketch that uses the JSON format. In this sketch, just define a resource that lists credit-check ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access