October 2020
Intermediate to advanced
358 pages
8h 39m
English
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 ...