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

Backend API endpoint to partially Update of one or more specified attribute of an efo trait #71

Open
sprintell opened this issue Oct 20, 2021 · 1 comment

Comments

@sprintell
Copy link
Member

sprintell commented Oct 20, 2021

API endpoint to partially Update of one or more specified attribute of an efo trait

Description:
As developer
I want an api endpoint
So that I can update few attributes of an efo trait

Management Rules:
Rule 0: Endpoint must be accessible to curator role only
Rule 1: Endpoint - /v1/efo-traits/{efoTraitIds}
Rule 2: HTTP Request Method - PATCH
Rule 3: Endpoint should accept one efo trait id
Rule 4: The Endpoint should accept validated EfoTrait DTO Object
Rule 5: Endpoint should return updated version of the efo trait

Acceptance Tests:
Given a wrong efoTrait id
When user sends a patch request to the endpoint
Properly described Entity not found exception should be returned in JSON format

Given invalid payload
When user sends a patch request to the endpoint
Properly described Exception should be returned in JSON format, detailing what payload attribute is wrong

Given a correct efoTrait Id with valid payload
When the front end sends a patch request to the endpoint
The corresponding efo trait must be partially updated
And updated efo trait returned

@sprintell sprintell changed the title API endpoint to partially Update of one or more specified attribute of an efo trait Backend API endpoint to partially Update of one or more specified attribute of an efo trait Oct 20, 2021
@ljwh2
Copy link

ljwh2 commented Aug 24, 2022

Would be best practise to have this, not required as part of standard workflow. Not a lot of work to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants