DARRT Project: Actions
Understand how to translate API design actions into Node.js functions within the DARRT framework. Learn to implement internal API logic with Promise-based functions, handling data input and customizing responses. This lesson helps build the core service layer before exposing external API endpoints.
We'll cover the following...
We'll cover the following...
Actions in the DARRT framework
The second letter in DARRT stands for actions. The actions.js file in the DARRT framework contains all the actions we defined in our API design. These are the internal functions of our service, not the external endpoints of the API. We documented these actions for our onboarding in the initial WSD diagram we created earlier. Now, we need to take the actions in that diagram and create them in Node.js code within our ...