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

API Sketching Example

Like the pencil sketches Gehry uses to explore possible building designs, you can create “API sketches” to explore your API designs. For example, in the Onboarding API project we’ve been working on over the past several chapters, we have the startOnboarding action defined in our ALPS document in Adding Action Elements. Let’s walk through a sample “design sprint” for just this one element of our API.

For starters, our ALPS document includes the following element that describes the startOnboarding action:

 ...
 
 {"id" : "startOnboarding", "type" : "unsafe", "rt" : "wip"}
 
 ...

Now we need to turn that into an actual message that would be sent from the API provider to an API client application. One possible API response ...

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