crumpet
crumpet copied to clipboard
A user can update a Person via the API
Background & Context*
People represent end users who are shown engagements. Users must be able to create, read, update, delete and generally manage people associated with a project and environment.
Goal*
- A user needs to be able to update a person's data via the API.
- A user needs to be able to create, update, read and delete the person's data schema via the API.
- A user needs to be able to update other Person fields.
Implementation Details*
- Will need to implement a serializer and view.
- It's probably easiest to use a
ModelViewSetfrom the REST Framework. - When updating
Person.datawe must make sure that the new JSON data conforms to the schema defined inPerson.schema.
Acceptance Criteria*
- Generate/update the Open API spec.
- A few tests to check the endpoint with invalid and valid parameters.
*required field.