REST API for Taskify built with Nest.
To install the application, follow these steps:
Clone the repository: git clone https://github.com/revou-fsse-1/w14-my-authorized-api-aldwiputra.git
Install the dependencies: pnpm install
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
See a full documentation here API Documentation
This project exposes the following endpoints:
/auth
Register a new user.
Request Body:
username
(string, required) - The username of the user.password
(string, required) - The password of the user.
Login a new user.
Request Body:
username
(string, required) - The username of the user.password
(string, required) - The password of the user.
/users
Get currently logged in user.
Greet unauthenticated user.
/tasks
Returns a list of all tasks.
Query:
q
(string, optional) - The query string to filter the result.
Returns the details of a specific task.
Parameters:
id
(string, required) - The ID of the task to retrieve.
Creates a new task.
Request Body:
title
(string, required) - The name of the user.done
(boolean, required) - Is the task has been done or not.userId
(number, required) - User id of the task's owner.
Updates the details of a specific task.
Parameters:
id
(string, required) - The ID of the user to update.
Request Body:
title
(string, required) - The name of the user.done
(boolean, required) - Is the task has been done or not.
Updates the details of a specific task.
Parameters:
id
(string, required) - The ID of the user to update.
Request Body:
done
(boolean, required) - Is the task has been done or not.
Deletes a specific task.
parameters:
id
(string, required) - the id of the user to delete.