You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: