Taskman Production

Backen API for the Task Manager application to manage tasks, users and authentication.

Authentication 8

Routes for user authentication including register, login, reset password, etc

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "User Account", "email": "user@gmail.com", "password": "123456", "role":"user" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "email": "user@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Headers
KeyValueDescription
Content-Typeapplication/json

JSON type

Body
{"name": "Publisher Account", "email": "publisher@gmail.com"}
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "Publisher Account", "email": "publisher@gmail.com" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "currentPassword":"1234567", "newPassword":"123456" }

Tasks 8

Routes for creating, updating and deleting tasks (CRUD)

Description

Get single task by ID

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Description

Add a new task to the database

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "task": "Test proposal", "description": "Write a detailed project proposal document", "dueDate": "2023-05-31T00:00:00.000Z", "priority": "High", "status": "Pending", "address": "123 High Street", "labels": [ "Work" ] }
Description

Update single Task in database

Body
{ "task": "Change Task" }
Description

Route to add image to existing task by task ID

Body
KeyValueDescription
file
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Query
KeyValueDescription
limit2
Body
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Query
KeyValueDescription
selecttask,description
sorttask
Body

Users 5

CRUD functionality for users only available to admins

Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "John Doe", "email": "john@gmail.com", "password": "123456" }
Headers
KeyValueDescription
Content-Typeapplication/json

JSON Type

Body
{ "name": "John Doe", "email": "john@gmail.com", "password": "123456" }

Available Variables 1

KeyValueType
TOKENyour-nasa-key