Title here
Summary here
Wire listAction to the tasks table you seeded in Step 5.
table()database.sqlite3 existsservices/TaskService.php:
protected function listAction(Arrayable $data): ApiResponse
{
$tasks = table('tasks')->all();
return response(0, 'OK', ['tasks' => $tasks]);
}curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"task","action":"list"}'You should see three tasks from schema.sql (including Jamie’s brief).
More query patterns: Making queries.
php bin/init-db.php if you deleted the SQLite file.