static async listMeasurements(req, res) {
		res.setHeader("Content-Type", "application/json");

		const results = await resolveOrError(ApiController.getAllGroups());

		if (results instanceof Error) {
			return res.end(JSON.stringify({"error": true, "message": results.stack}));
		}

		res.end(JSON.stringify(results));
	}
/**
	 * Respond to the request with a list of all measurement groups and their measures
	 *
	 * @param  {Request} req  The expressjs request instance
	 * @param  {Response} res The expressjs response instance
	 */
Respond to the request with a list of all measurement groups and their measures
@param  {Request} req  The expressjs request instance
@param  {Response} res The expressjs response instance
Respond to the request with a list of all measurement groups and their measures @param { Request } req The expressjs request instance @param { Response } res The expressjs response instance
static async listMeasurements(req, res) {
		res.setHeader("Content-Type", "application/json");
		const results = await resolveOrError(ApiController.getAllGroups());
		if (results instanceof Error) {
			return res.end(JSON.stringify({"error": true, "message": results.stack}));
		}
		res.end(JSON.stringify(results));
	}
static async listMeasurements ( req , res ) { res . setHeader ( "Content-Type" , "application/json" ) ; const results = await resolveOrError ( ApiController . getAllGroups ( ) ) ; if ( results instanceof Error ) { return res . end ( JSON . stringify ( { "error" : true , "message" : results . stack } ) ) ; } res . end ( JSON . stringify ( results ) ) ; }
Respond to the request with a list of all measurement groups and their measures
 @param  {Request} req  The expressjs request instance
 @param  {Response} res The expressjs response instance
Respond to the request with a list of all measurement groups and their measures @param { Request } req The expressjs request instance @param { Response } res The expressjs response instance