Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2022-06-09 (23 days ago)  | | Not yet rated by the users | | Total: 66 This week: 3 | | All time: 10,046 This week: 47 |
|
Description | | Author |
This package implements an application to manage a list of tasks to do.
It provides a controller that can handle API requests to perform several types of operations to manage pending tasks.
The controller returns responses in JSON format to tell the API clients about the results of the actions.
The package also provides a model class that performs the actual operations to store and retrieve the objects that store and retrieve the task object values like the task title, status, and owner user.
Currently, the model class implements operations to create tasks. | |
 |
|
Innovation award
 Nominee: 6x |
|
Details
Fake Todo
A fake todo api-based application
Live Version
Visit Fake Todo
Note
I added some custom routes such as /todos/{id}/put and /todos/{id}/patch
to help expose their respective functionality through POST method.
<br/>This happen because jQuery & axios converts PATCH, PUT and DELETE requests to OPTIONS which will return error response.
Installation
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
Configuration
Edit .env file to provide database & other configurable information
Database
php artisan migrate --seed
Running
php -S localhost:8000 -t public
Endpoints
Please take a look at requests.http for sample
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.