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

Solution for Chapter 8: Building APIs

In Chapter 8, Building APIs, the task was to use the design assets to implement a working API service using NodeJS and the DARRT library. The three key tasks are these:

  • Install the DARRT library into your NodeJS project.

  • Update your DARRT files (data, action, resources, representations, and transitions).

  • Once the API is completed, run a “happy path” validator script.

The instructions in the chapter also included a hint on how to initialize your NodeJS project using npm to update the project dependencies and start up the API service using nodemon.

Install the DARRT Library

The /before/ version of this exercise has the DARRT library already installed. I did that to copy a few hints into the script to make ...

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