Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Hazard Information and Hazard Hunt - Create Update and Delete Admin Role Check #21

Open
codingbandit opened this issue Jan 16, 2021 · 3 comments
Labels
api good first issue Good for newcomers

Comments

@codingbandit
Copy link
Collaborator

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

@dpaquette
Copy link
Collaborator

These functions have been created but we need to ensure that the Create, Update, and Delete endpoints are only accessible to admin users.

@dpaquette dpaquette added the needs-info Needs additional information for developers to proceed label Sep 2, 2021
@codingbandit codingbandit reopened this Mar 6, 2022
@codingbandit codingbandit added good first issue Good for newcomers and removed needs-info Needs additional information for developers to proceed labels Mar 6, 2022
@codingbandit
Copy link
Collaborator Author

Create, Update, and Delete endpoints need to have the admin check - check out the BaseKitsApi as an example

@codingbandit codingbandit changed the title Hazard Information - Functions Implementation API: Hazard Information and Hazard Hunt - Create Update and Delete Admin Role Check Mar 6, 2022
@dpaquette
Copy link
Collaborator

These endpoints do have the admin check already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants