-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Milestone
Description
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 aspublishedScreenerIdorbenefits. - The current PUT endpoint for Screener is changed to a PATCH endpoint.
- This Patch endpoint is changed to only allow edits to the fields
screenerNameandformSchema.
- This Patch endpoint is changed to only allow edits to the fields
- The unused fields
organizationNameandresultsSchemaare 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
idas a read-only field for the Screener model. Currently theidis the automatically generated Document ID of the record in firebase, and is not a field within that document.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status