Skip to content

Screener API Security #250

@Justin-MacIntosh

Description

@Justin-MacIntosh

User Story

As a Dev working on Builder API, I would like for API Endpoints related to Screeners to only be able to edit the pieces of data they need to edit in order for the backend to function properly, so that no potential vulnerabilities exist when hitting the Builder Web API directly. I would also like any unused fields on Screener to be removed to avoid Developer confusion.

Acceptance Criteria

  • The current POST endpoint for Screener is updated to only accept the field screenerName. This POST should create a new, blank Screener with the given name. It should NOT BE POSSIBLE to create a Screener that already has values for fields such as publishedScreenerId or benefits.
  • The current PUT endpoint for Screener is changed to a PATCH endpoint.
    • This Patch endpoint is changed to only allow edits to the fields screenerName and formSchema.
  • The unused fields organizationName and resultsSchema are removed from the Screener model.
  • Any UI-related changes that are necessary to prevent the above changes from breaking the User Workflow are made.

Notes

  • For extra credit here, determine if there is a way to tag or denote id as a read-only field for the Screener model. Currently the id is the automatically generated Document ID of the record in firebase, and is not a field within that document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions