/kanban-rest

Kanban REST service

Primary LanguageShell

RS School REST service

Prerequisites

Downloading

$user: git clone {repository URL}
$user: cd kanban-rest

Run Docker

Install docker and docker-compose using the instruction https://docs.docker.com/get-docker/

Run command:

docker-compose up

REST service docs

Endpoints:

  • Swagger Docs (/docs route)

  • Auth (/ route)

    • POST /signup - new user registration
    • POST /signin - user authorization
  • User (/ route)

    • GET /users - get all users
    • GET /users/:userId - get the user by id (ex. “/users/123”)
    • PUT /users/:userId - update user
    • DELETE /users/:userId - delete user
  • Board (/boards route)

    • GET / - get all boards
    • GET /:boardId - get the board by id
    • POST / - create board
    • PUT /:boardId - update board
    • DELETE /:boardId - delete board
  • Column (boards/:boardId/columns route)

    • GET / - get all columns
    • GET /:columnsId - get the column by id
    • POST /:columnsId - create column
    • PUT /:columnsId - update column
    • DELETE /:columnsId - delete column
  • Task (boards/:boardId/columns/:columnsId route)

    • GET /tasks - get all tasks
    • GET /tasks/:taskId - get the task by id
    • POST /tasks - create task
    • PUT /tasks/:taskId - update task
    • DELETE /tasks/:taskId - delete task
  • File:

    • GET file/:taskId/:filename/ - download file
    • POST file/ - upload file multipart/form-data