A brief description of what this project does and who it's for
Server: Laravel V.10
Package: Laravel Sanctum
download or clone this repository
git clone https://github.com/dms-p/todo-list-api.git
Setup .env Database
DB_DATABASE=todoApp
DB_USERNAME=root
DB_PASSWORD=
Jalankan Migration
php artisan migrate
Jalankan Aplikasi
php artisan serve
Required. Your API key
GET /api/todo
GET /api/todo/${slug}
POST /api/todo
key | Type | Description |
---|---|---|
title |
string |
Masukan Title Todo |
description |
text |
Masukan description Todo |
status |
enum |
Masukan Status Todo |
POST /api/todo/${slug}
key | Type | Description |
---|---|---|
title |
string |
Masukan Title Todo |
description |
text |
Masukan description Todo |
status |
enum |
Masukan Status Todo |
_method |
string |
Masukan Value PATCH/PUT |
DELETE /api/todo/${slug}