Skip to content

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

Open

Description

@codingbandit

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

Activity

  1. dpaquette commented on Sep 2, 2021

    @dpaquette
    Collaborator

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

  2. added
    needs-infoNeeds additional information for developers to proceed
    on Sep 2, 2021
  3. added and removed
    needs-infoNeeds additional information for developers to proceed
    on Mar 6, 2022
  4. codingbandit commented on Mar 6, 2022

    @codingbandit
    CollaboratorAuthor

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

  5. changed the title [-]Hazard Information - Functions Implementation[/-] [+]API: Hazard Information and Hazard Hunt - Create Update and Delete Admin Role Check[/+] on Mar 6, 2022
  6. dpaquette commented on Mar 7, 2022

    @dpaquette
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions