Skip to content

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

@sprintell

Description

@sprintell

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions