API: Hazard Information and Hazard Hunt - Create Update and Delete Admin Role Check
Dependent on issue #19
Serves mobile application read-only lists of hazards as well as directives on what to do in case of the hazard(ie. earthquake). Serves (tbd) admin app to allow for maintenance of hazard information (crud).
Function names, signatures, object names, and number of functions are not set in stone:
GetHazardInformationList() returns HazardInformation[] GetHazardInformation(HazardInformationId) returns HazardInformation CreateHazardInformation(Name, Description, Directive, Photo, Icon) returns HazardInformation UpdateHazardInformation(HazardInformation) returns HazardInformation DeleteHazardInformation(HazardInformationId) returns bool
Once complete, please document the final API/Classes in the Wiki
These functions have been created but we need to ensure that the Create, Update, and Delete endpoints are only accessible to admin users.
Create, Update, and Delete endpoints need to have the admin check - check out the BaseKitsApi as an example
These endpoints do have the admin check already.