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
An endpoint at /taskmaster/tasks that accepts POST requests with a request body that can mapped to a TaskRequestPayload should be created to allow for new task creation and persistence. The TaskRequestPayload DTO is used for validation (most of which is already implemented using Validation API annotations) and exposes a method that returns a valid Task object. A random UUID should be generated and used to set the ID of the extracted Task object, and it should then be persisted to the data source.
Description
An endpoint at
/taskmaster/tasks
that accepts POST requests with a request body that can mapped to aTaskRequestPayload
should be created to allow for new task creation and persistence. TheTaskRequestPayload
DTO is used for validation (most of which is already implemented using Validation API annotations) and exposes a method that returns a validTask
object. A random UUID should be generated and used to set the ID of the extractedTask
object, and it should then be persisted to the data source.Acceptance Criteria
TaskCreationIntegrationTest
mvn clean test
within a terminal-Dspring.profiles.active=test
when running tests to run them under the correct profileValidation Constraints
creatorId
and anyassigneeIds
must belong to a user in the data source (seeMockDataInserter
)UnprocessableEntityException
should be thrown (handler already implemented)Example Payloads
Valid
TaskRequestPayload
JSON without task assignee IDs:Valid
TaskRequestPayload
JSON with task assignee IDs:The text was updated successfully, but these errors were encountered: