implement get board information
Opened this issue · 0 comments
as backend
I want to get board information from the system by board Id
So that the user should be able to get board information
Sample request
GET api/boards/{id}
{
}
Acceptance criteria 1
Given get board information request sent to the get board information endpoint
When board id and Authorization Header are in right format and valid
Then backend must return successful get board information response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "string",
"workSpaceId": "string",
"name": "string"",
"lists": []
}
Acceptance criteria 2
Given get board information request sent to the get board information endpoint
When board id is in incorrect format
Then backend must return bad request exception
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"message":” board Id is in incorrect format",
"code": 400
}
Acceptance criteria 3
Given get board information request sent to the get board information endpoint
When the board is not belong to the user
Then backend must return Unauthorized response
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"message":”The Board is belong to another user",
"code": 401
}