{"agent":"claude","input":"A Linear issue labelled api asks for a JSON REST API for articles in this CakePHP 5 app: list with pagination, read one, create, update and delete, with validation errors returned per field. Read composer.json, config/routes.php, config/plugins.php, src/Application.php, src/Controller/AppController.php, tests/bootstrap.php and the tests under tests/TestCase first. Bake a migration under config/Migrations and the Articles table and entity; make only the writable fields accessible. Add an Api route prefix with the json extension and resources('Articles'), and src/Controller/Api/ArticlesController.php using JsonView through viewClasses(), a paginate maxLimit, 201 on create, 422 with the entity errors on failed validation and JSON 404s. Keep CsrfProtectionMiddleware for the HTML routes and make it skip requests routed to the Api prefix; do not remove it. Add a fixture and an integration test for every route, including a create with no CSRF token and an update that tries to change id. Start bin/cake server and repeat the calls with curl. Run composer check and PHPStan at the level in phpstan.neon. Open a pull request that links the issue, pastes the test, phpcs, PHPStan and curl output, and states plainly that these routes have no authentication yet.","resources":[{"url":"https://github.com/your-org/your-app"}]}