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

Putting It All Together

Now that we’ve reviewed all the individual parts of the DARRT framework (data, actions, resources, representations, and transitions) and seen how it’s put together, we can run some simple queries against our instance of the onboardingAPI to see how it behaves. To do that, we need to start up our local instance of the onboardingAPI and then use curl to execute some simple tests.

First, to start the local instance of the onboadingAPI, open a command window, move to the /building/all-together/ folder in the source code download associated with this chapter, and run the following command:

 npm run dev

This command will fire up the onboardingAPI service and wait for requests. Note that this command assumes you already have ...

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