Skip to content

Commit

Permalink
custom controller action from database using Paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
Aymeric Ratinaud committed Jul 3, 2021
1 parent 1d34f49 commit ea7db84
Show file tree
Hide file tree
Showing 14 changed files with 614 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,25 @@ CityFilter pass the `sort` and `order` params to the context and this context it

composer install

php bin/console doctrine:schema:update --env=dev --dump-sql

php bin/console doctrine:schema:update --env=dev --force

php bin/console hautelook:fixtures:load

## Launch

symfony serve --no-tls

## Usage

sort and filter on raw data from csv

`/api/cities?search[key]=tokyo&order[key]=desc&page=1`

custom controller action from database using Paginator
`api/movies/custom-action?page=1&order[id]=asc&order[title]=desc`

### Keys available

- id
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
"hautelook/alice-bundle": "^2.9",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "^5.3",
"symfony/css-selector": "^5.3",
Expand Down
Loading

0 comments on commit ea7db84

Please # to comment.