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

API v2: sort_by=ecoscore_score #517

Closed
Tracked by #515
monsieurtanuki opened this issue Jul 13, 2022 · 0 comments · Fixed by #522
Closed
Tracked by #515

API v2: sort_by=ecoscore_score #517

monsieurtanuki opened this issue Jul 13, 2022 · 0 comments · Fixed by #522
Assignees

Comments

@monsieurtanuki
Copy link
Contributor

monsieurtanuki commented Jul 13, 2022

https://world.openfoodfacts.org/api/v2/search?categories_tags_en=cakes&fields=code,product_name&sort_by=ecoscore_score

@monsieurtanuki monsieurtanuki changed the title https://world.openfoodfacts.org/api/v2/search?categories_tags_en=cakes&fields=code,product_name&sort_by=ecoscore_score API v2: sort_by=ecoscore_score Jul 13, 2022
@monsieurtanuki monsieurtanuki self-assigned this Jul 22, 2022
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Jul 22, 2022
Impacted files:
* `SortBy.dart`: added ECOSCORE sort by option
* `api_searchProducts_test.dart`: added a test comparing the product orders generated by all sort options
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Jul 25, 2022
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Jul 25, 2022
monsieurtanuki added a commit to monsieurtanuki/openfoodfacts-dart that referenced this issue Aug 3, 2022
monsieurtanuki added a commit that referenced this issue Aug 3, 2022
Impacted files:
* `SortBy.dart`: added ECOSCORE and NUTRISCORE sort by option
* `api_searchProducts_test.dart`: added a test comparing the product orders generated by all sort options
Repository owner moved this from To do to Done in Dart package - Support for new APIs and issues Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants