implements get card
Opened this issue · 0 comments
cihatturhan commented
as backend
I want toget card from the system by list Authorization Header
So that the user should be able to get card information
Sample request
GET api/v1/card/{id}
Acceptance criteria 1
Given get card request sent to the get card endpoint
When card Id is in right format and card is belong to auThenticated user
Then backend must return successful get card response
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 1234,
"title": "string",
"description": "string",
"orderNumber": 1234,
"listId": 1234
}
Acceptance criteria 2
Given get card request sent to the get card endpoint
When card is not belong to user
Then backend return 401 Unauthorized
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"message":”unauthorized request",
"code": 401
}
Acceptance criteria 3
Given get card request sent to the get workspace endpoint
When list Id is in incorrect format
Then backend must return bad request exception
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"message":” list Id is in incorrect format",
"code": 400
}