This is a simple API application that implement authentication, API calls with proper methods and validation.
- PHP 8 or higher
- PHP Modules
- bcmath
- mysqli
- pdo
- pdo_mysql
- First make sure you have running Mysql Database.
- Make a copy of
.env.example
and name it.env
- In your terminal, go to the base directory of the application and run below command
php artisan key:generate
- Open
.env
file and locate below variable and set database connection
DB_HOST=taskmanagement_db
DB_PORT=3306
DB_DATABASE=taskmanagement_db
DB_USERNAME=root
DB_PASSWORD=
- Now you can run your application using below command
php artisan serve
Located in
/postman
User Registration
POST /api/users/register
Parameters
{
"name": "",
"email": "",
"password": "",
"password_confirmation": ""
}
User Login
POST /api/users/login
Parameters
{
"email": "",
"password": ""
}
Task Create
POST /api/tasks
Parameters
{
"title": "",
"description": "",
"status": "",
"due_date": ""
}
Task Update
PUT /api/tasks/{Task ID}
Parameters
{
"title": "",
"description": "",
"status": "",
"due_date": ""
}
Task Delete
DELETE /api/tasks/{Task ID}
Task Listing
GET /api/tasks