A fake todo api-based application
Visit Fake Todo
I added some custom routes such as /todos/{id}/put and /todos/{id}/patch
to help expose their respective functionality through POST method.
This happen because jQuery & axios converts PATCH, PUT and DELETE requests to OPTIONS which will return error response.
Clone the repository
I've added some decorator to decorate the json response syntax.
Please note that this project requires PHP 8.1
git clone git@github.com:ahmard/fake-todo.git
Install composer packages
cd fake-todo
composer update
Edit .env file to provide database & other configurable information
php artisan migrate --seed
php -S localhost:8000 -t public
Please take a look at requests.http for sample