Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse filter params #14

Merged
merged 4 commits into from
Mar 16, 2017
Merged

Parse filter params #14

merged 4 commits into from
Mar 16, 2017

Conversation

thierrymarianne
Copy link

@thierrymarianne thierrymarianne commented Mar 16, 2017

Usage examples:

Combinations of product with id #2

/api/stock/2

Sorting and pagination parameters can be applied to a subset of product combinations
Combinations of products with id #1 sorted by descending available quantity

/api/stock/1?order=available_quantity%20desc

Second page of products sorted by ascending supplier name, counting 3 products

/api/stock?order=supplier&page_size=3&page_index=2

@nihco2: Merging this PR requires updating routes nanes passed to url Twig function in src/PrestaShopBundle/Resources/views/Admin/Stock/overview.html.twig

Examples:

Combinations of product with id #2

```
/api/stock/2
```

Sorting and pagination parameters can be applied to a subset of product combinations
Combinations of products with id #1 sorted by descending available quantity

```
/api/stock/1?order=available_quantity%20desc
```

Second page of products sorted by ascending supplier name, counting 3 products

```
/api/stock?order=supplier&page_size=3&page_index=2
```
@nihco2 nihco2 merged commit 827abd5 into nihco2:feat/stock Mar 16, 2017
nihco2 pushed a commit that referenced this pull request Mar 21, 2017
nihco2 pushed a commit that referenced this pull request Mar 29, 2017
nihco2 pushed a commit that referenced this pull request Apr 4, 2017
nihco2 pushed a commit that referenced this pull request Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants