Search⌘ K
AI Features

Putting It All Together

Explore building APIs with Node.js and the DARRT framework by starting a local Onboarding API instance. Learn how to use curl for making requests, understand different JSON response formats, and run simple scripts to validate the API’s expected behavior before moving to advanced testing. This lesson guides you through putting together core API functions into a working service you can query and test interactively.

Starting a local instance of the Onboarding API

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 Onboarding API to see how it behaves. To do that, we need to start up our local instance of the Onboarding API and then use cURL to execute some simple tests.

Running queries against the Onboarding API

First, to start the local instance of the Onboarding ...