From 51f2eb0666784b1c01369caba0a05d677cdd9036 Mon Sep 17 00:00:00 2001 From: Michael Chouinard Date: Fri, 6 Sep 2024 12:33:39 -0400 Subject: [PATCH] Add examples --- .../opportunities_v1/opportunity_routes.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/api/src/api/opportunities_v1/opportunity_routes.py b/api/src/api/opportunities_v1/opportunity_routes.py index 306272847..678bf2a88 100644 --- a/api/src/api/opportunities_v1/opportunity_routes.py +++ b/api/src/api/opportunities_v1/opportunity_routes.py @@ -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", + }, + }, + }, }