Skip to Content
Design and Build Great Web APIs
book

Design and Build Great Web APIs

by Mike Amundsen
October 2020
Intermediate to advanced
358 pages
8h 39m
English
Pragmatic Bookshelf
Content preview from Design and Build Great Web APIs

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.
Start your free trial

You might also like

Designing Web APIs

Designing Web APIs

Brenda Jin, Saurabh Sahni, Amir Shevat

Publisher Resources

ISBN: 9781680508123Errata Page