Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chouinar committed Sep 6, 2024
1 parent 8f86a81 commit 51f2eb0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions api/src/api/opportunities_v1/opportunity_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,37 @@
},
},
},
"example5": {
"summary": "Filter by award fields",
"value": {
"filters": {
"expected_number_of_awards": {"min": 5},
"award_floor": {"min": 10000},
"award_ceiling": {"max": 1000000},
"estimated_total_program_funding": {"min": 100000, "max": 250000},
},
"pagination": {
"order_by": "opportunity_id",
"page_offset": 1,
"page_size": 25,
"sort_direction": "descending",
},
},
},
"example6": {
"summary": "FIlter by assistance listing numbers",
"value": {
"filters": {
"assistance_listing_number": {"one_of": ["43.001", "47.049"]},
},
"pagination": {
"order_by": "opportunity_id",
"page_offset": 1,
"page_size": 25,
"sort_direction": "descending",
},
},
},
}


Expand Down

0 comments on commit 51f2eb0

Please sign in to comment.