vs-vapi

Tech Docs Home Back Repo Link Jira Link

Projects Controller

Routes

GETproject

Get the project with the id.

PASS:

QUERYprojects

Query Projects through options.query. A way to customize project queries. Anything allows through the mongomart, is allowed through options.

PASS

CREATEproject

Takes in a whole project and an hhid to link to. Checks to see if the home exists. If the home exists the project is inserted into the database. On success, the project id is pushed home.activeProjects. If activeProjects can not be updated the project is deleted, and success=false returned.

PASS:

UPDATEproject

Update a project with a valid id. Update takes any valid property value or mongo update function ($push).

PASS

REMOVEproject

Will remove a project from the database given the id and associated hhid. After a successful delete, the home is update and the taskmanager is notified of the deletion and cleaned.

PASS: