/** * Get the collection of agenda items. * * @Get("/") * @Response(200, body={{"id": 1, "body": "foo", "created_by": "1", * "url": "/agenda/1"}}) * @return Response */ public function index() { $items = AgendaItem::query(); return response()->json($items->paginate()); }