DARRT Project: Resources
Learn about the resources in a DARRT project.
We'll cover the following...
Resources in the DARRT framework
Now, it’s time to implement all the externally addressable API endpoints, or resources, for this service. We do that in the resources.js
file of the DARRT framework. The reference diagram for our external endpoints is the one we created earlier. To refresh our memory, it looks like this:
The key elements on this diagram (items in oval shapes) are the external endpoints of our HTTP API. This diagram also tells us which HTTP methods are supported for each resource. That’s what we need to implement in our resources.js
file—not just the endpoints, but also the methods to be supported.
The following is a quick rendering of the resources.js
file with all the ...