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 & Markerting" }, "board": { "name": "Ongoing Campaigns", "personal": false, "id": 1 }, "members": ...