Skip to content

Commit

Permalink
📝 (api) use recent years in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Nov 11, 2023
1 parent 7085546 commit 06df7db
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions farmsubsidy_store/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def recipients(
"country": "DE",
"url": [],
"years": [
2020,
2022,
2015,
2017,
2019,
Expand Down Expand Up @@ -284,7 +284,7 @@ async def countries(
"total_recipients": 30276,
"total_payments": 264854,
"years": [
2020,
2022,
2015,
2017,
2016,
Expand Down Expand Up @@ -312,7 +312,7 @@ async def years(
Return aggregated values for years based on filter criteria.
Of course, you can filter by `years` to
[get a single year](/years?year=2020).
[get a single year](/years?year=2022).
There are two kinds of filters:
Expand All @@ -329,7 +329,7 @@ async def years(
```json
{
"year": 2020,
"year": 2022,
"total_recipients": 4300168,
"total_payments": 18301312,
"countries": [
Expand Down Expand Up @@ -401,12 +401,14 @@ async def locations(
{
"location": "ADMONT, 8913, AT",
"years": [
2022,
2021,
2020,
2015,
2017,
2016,
2019,
2018,
2017,
2016,
2015,
2014
],
"countries": [
Expand Down

0 comments on commit 06df7db

Please sign in to comment.