Skip to content

API Routes

Justin Stoctkon edited this page Jul 23, 2022 · 1 revision

Workspaces

  • GET /api/w/all/:ownerId

    • This route will get all of the Workspaces from the database for a user.
  • GET /api/w/:workspaceId

    • This route will get a specific Workspace from the database.
  • POST /api/w/create

    • This route will add a new Workspace to the database.
  • PUT api/w/update

    • This route will update the information of an already existing Workspace.
  • POST /api/w/delete

    • This route will delete a Workspace from the database.

Boards

  • GET /api/b/all/:username

    • This route will get all of the Boards from the database for a user's Workspace.
  • GET /api/b/:boardId

    • This route will get a specific Board from the database.
  • POST /api/b/create

    • This route will add a new Board to the database.
  • PUT api/b/update

    • This route will update the information of an already existing Workspace.
  • POST /api/b/delete

    • This route will delete a Board from the database.

Stacks

  • GET /api/s/all/:boardId

    • This route will get all of the Stacks from the database for a user's Workspace.
  • GET /api/s/:stackId

    • This route will get a specific Stack from the database.
  • POST /api/s/create

    • This route will add a new Stack to the database.
  • PUT api/s/update

    • This route will update the information of an already existing Stack.
  • POST /api/s/delete

    • This route will delete a Stack from the database.

Cards

  • GET /api/c/all/:stackId

    • This route will get all of the Cards from the database for a user's Workspace.
  • GET /api/c/:stackId

    • This route will get a specific Card from the database.
  • POST /api/c/create

    • This route will add a new Card to the database.
  • PUT api/c/update

    • This route will update the information of an already existing Card.
  • POST /api/c/delete

    • This route will delete a Card from the database.
  • POST /api/c/all/delete

    • This route will delete all Cards from a stack in the database.

Comments

  • GET /api/comment/all/:stackId

    • This route will get all of the Comments from the database for a user's Board.
  • GET /api/comment/:commentId

    • This route will get a specific Comment from the database.
  • POST /api/comment/create

    • This route will add a new Comment to the database.
  • PUT api/comment/update

    • This route will update the information of an already existing Comment.
  • POST /api/comment/delete

    • This route will delete a Comment from the database.

Clone this wiki locally