From the root of the project, run:
npm install
npm run dev
npm t
Request type | Endpoint | Action |
---|---|---|
POST | /api/v1/locations | adds a location to the database |
GET | /api/v1/locations/:id | Gets a location and it's subtree as well as their location summary from the databse |
PUT | /api/v1/locations/:id | Modifies a location in the database |
DELETE | /api/v1/locations/:id | Deletes a location and it's subtree from the databse |