Mark many events as finished
SalasSamuel opened this issue · comments
Edgar Samuel Salas Reyes commented
As a user, I want to be able to mark many events as finished.
Constraints
- User must be logged in
Scenario 1
Admin tries to mark many events as finished.
System Response: notifies the user that the events were marked as finished
Request:
POST /api/v1/events/actions
accept: application/json
{
"action": "mark_as_finished",
"ids": ["1", "2"]
}
Response:
HTTP 1.1 200 Ok
Scenario 2
User tries to mark many events as finished, but the user is not logged in
System Response: notifies the user that is not logged in
Request:
POST /api/v1/events/actions
accept: application/json
{
"action": "mark_as_finished",
"ids": ["1", "2"]
}
Response:
HTTP 1.1 401 Unauthorized
{
"code": "401",
"message": "Unauthorized"
}
Scenario 3
User tries to mark many events as finished, but the service is not available
System Response: notifies the user that the service is not available
Request:
POST /api/v1/events/actions
accept: application/json
{
"action": "mark_as_finished",
"ids": ["1", "2"]
}
Response:
HTTP 1.1 500 Internal Server Error
{
"code": "500",
"message": "Internal Server Error"
}