TODO List API

A brief description of what this project does and who it's for

Tech Stack

Server: Laravel V.10

Package: Laravel Sanctum

Installation

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

API Reference

Access API

Required. Your API key

Get all Todo

  GET /api/todo

Get detail Todo

  GET /api/todo/${slug}

Create Todo

  POST /api/todo
key Type Description
title string Masukan Title Todo
description text Masukan description Todo
status enum Masukan Status Todo

Update 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 Todo

  DELETE /api/todo/${slug}