Now, let's take a look at what we will need to do to implement the backend of the board page. In a nutshell, we will need to do the following:
- Create the domain models of the card list, the card, and
BoardMember
- Create the application services
- Create the repository implementations
- Create the API handlers in controllers
First of all, let's see the APIs that we will need to implement:
- The API to get a board
- The API to add a board member
- The API to add a card list
- The API to change the positions of card lists
- The API to add a card
- The API to change card positions
Let's take a look at each one of them, as follows:
- Get board API: This will be a
GET
request sent to/api/boards/{boardId}
. Through this API, we will return the board information, as well as the board members, card lists, and its cards. If this is a team board, we will also need to return the team information. The following is how the response will look:
{ "team": { "name": "Sales...