This repository is the back-end API for Intercept. Contained within is the Flask project that serves as the interface between the MongoDB database and the Angular front-end
Route: /password
Method: POST
Args: Form data
Allows users to anonymously store survey results for later retreival
Route: /login
Method: POST
Args: id, password
Allows the user to enter a previous survey ID and pasword, and view saved results.
Route: /organization
Method: GET
Args: id: Optional
If ID of an organization is provided, will return that organization's data. Otherwise, will return all organizations.
Route: /questions
Method: GET
Provides all questions in JSON format to front-end for display.
route /surveySubmit
Method: POST
Args: Form data
Saves the survey with the password and all tags
Route: /surveyOrgResults
Method: GET
Args: id
Retrieves all organizations that are relevant to needs determined by the given survey ID