crumpet icon indicating copy to clipboard operation
crumpet copied to clipboard

A user can update a Person via the API

Open tomtitherington opened this issue 1 year ago • 0 comments

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 ModelViewSet from the REST Framework.
  • When updating Person.data we must make sure that the new JSON data conforms to the schema defined in Person.schema.

Acceptance Criteria*

  • Generate/update the Open API spec.
  • A few tests to check the endpoint with invalid and valid parameters.

*required field.

tomtitherington avatar Feb 25 '24 15:02 tomtitherington