Giter VIP home page Giter VIP logo

new_kanban's Introduction

Kanban Server

Kanban is an application to manage organization's tasks. This app has :

  • RESTful endpoint for task's CRUD operation
  • authorization
  • JSON formatted response

ย 

RESTful endpoints

POST /register

Create new user

Request Header

not needed

Request Body

{
  "name": <your name>,
  "email": <your email>,
  "password": <your password>
}

Success Response:

Response (201 - Created)

{
  "id": <id>,
  "name": <your name>,
  "email": <your email>,
  "password": <your encrypted password>,
  "updatedAt": <date>,
  "createdAt": <date>
}

Error Response:

Response (400 - Bad Request)

[
  "message": <detail message>
]

Response (409 - conflict)

{
  "message": "Email Already registered!"
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

POST /login

Process Login

Request Header

not needed

Request Body

{
  "email": <your email>,
  "password": <your password>
}

Success Response:

Response (200 - Ok)

{
  "access_token": <your access token>
}

Error Response:

Response (400 - Bad Request)

[
  "message": <detail message>
]

Response (404 - Not Found)

{
  "message": "user not registered!"
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

POST /tasks

Create new task

Request Header

{
  "access_token": <your access token>
}

Request Body

{
	"title": <title>
	"category": <category>
	"description": <description> 
}

Success Response:

Response (201 - Created)

{
  "id": <id>,
  "title": <title>,
  "description": <description> ",
  "category": <category>,
  "UserId": <UserId>,
  "updatedAt": <date>,
  "createdAt": <date>
}

Error Response:

Response (400 - Bad Request)

[
  "message": <message detail>
]

Response (401 - Unauthorized)

{
  "message": "Not authenticated!"
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

GET /tasks

Get User's tasks

Request Header

{
  "access_token": <your access token>
}

Request Body

not needed

Success Response:

Response (200 - Ok)

[
	{
    "id": <id>,
    "title": <title>,
    "description": <description>,
    "category": <category>,
    "UserId": <UserId>,
    "Creator": <your name>
	},
	{
    "id": <id>,
    "title": <title>,
    "description": <description>,
    "category": <category>,
    "UserId": <UserId>,
    "Creator": <your name>
	},
]

Error Response:

Response (401 - Unauthorized)

{
  "message": "Not authenticated!"
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

GET /tasks/:id

Get task by task's id

Request Header

{
  "access_token": <your access token>
}

Request Body

not needed

Success Response:

Response (200 - Ok)

{
  "id": <id>,
  "title": <title>,
  "description": <description>,
  "category": <category>,
  "UserId": <UserId>,
  "Creator": <your name>
},

Error Response:

Response (401 - Unauthorized)

{
  "message": "Not authenticated!"
}

Response (403 - Forbidden)

{
  "message": "Forbidden access!"
}

Response (404 - Not Found)

{
  "message": "task not found! "
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

PUT /tasks/:id

Update task

Request Header

{
  "access_token": <your access token>
}

Request Body

{
	"title": <title> "
	"category": <category>
	"description": <description>"
}

Success Response:

Response (200 - Created)

{
  "message": "Update task success"
}

Error Response:

Response (401 - Unauthorized)

{
  "message": "Not authenticated!"
}

Response (403 - Forbidden)

{
  "message": "Forbidden access!"
}

Response (404 - Not Found)

{
  "message": "task not found! "
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

DELETE /tasks/:id

Update task

Request Header

{
  "access_token": <your access token>
}

Request Body

not needed

Success Response:

Response (200 - Ok)

{
  "message": "Delete task success"
}

Error Response:

Response (401 - Unauthorized)

{
  "message": "Not authenticated!"
}

Response (403 - Forbidden)

{
  "message": "Forbidden access!"
}

Response (404 - Not Found)

{
  "message": "task not found! "
}

Response (500 - Internal Server Error)

{
  "message": "Internal Server Error"
}

new_kanban's People

Contributors

2maleek avatar stefkwan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.