- Create your env with the following data:
MONGODB_URL=mongodb://localhost:27017
- Install dependencies:
npm install
- Start the code:
npm start
This documentation provides information about the payload structure required for each endpoint.
Description: Hit this endpoint to save a user whenever the login is done.
Request Payload:
{
"email": "current-user@gmail.com",
"name":"user-name"
}Description: To create a new board.
Request Payload:
{
"boardId": "342-3424-543",
"boardName": "new board 2",
"user": "current-user@gmail.com"
}Description: To add participant to existing board.
URL structure:
/add-participants/boardId
Request Payload:
{
"participant":"user1@gmail.com"
}Description: To delete a board.
Request Payload:
{
"boardId": "342-3424-543",
"userEmail": "current-user@gmail.com"
}Description: To get all details of board
URL structure:
/board-details/boardId
Description: To get all boards of a user
URL structure:
/get-my-boards/:userEmail
Description: To check validation of board ID.
URL structure:
/validate-boardid/:boardId
Description: To save a board ID to collection.
Request Payload:
{
"boardId": "342-3424-543"
}Description: To remove a board ID from collection.
Request Payload:
{
"boardId": "342-3424-543"
}Description: To get all boards of a user where he has participated
URL structure:
/get-participated-board/:userEmail