Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A user can update a Person via the API #72

Open
Tracked by #60
tomtitherington opened this issue Feb 25, 2024 · 0 comments
Open
Tracked by #60

A user can update a Person via the API #72

tomtitherington opened this issue Feb 25, 2024 · 0 comments
Labels
good first issue Good for newcomers scope: backend Work involving the backend / Django REST project. size: hours This should take less than a day. type: feature A piece of functionality of the product.

Comments

@tomtitherington
Copy link
Contributor

tomtitherington commented Feb 25, 2024

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 tomtitherington changed the title A user needs to be able to update a Person via the API A user can update a Person via the API Feb 25, 2024
@tomtitherington tomtitherington added size: hours This should take less than a day. scope: backend Work involving the backend / Django REST project. good first issue Good for newcomers type: feature A piece of functionality of the product. labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers scope: backend Work involving the backend / Django REST project. size: hours This should take less than a day. type: feature A piece of functionality of the product.
Projects
Status: 🔖 Planned
Development

No branches or pull requests

1 participant