From 6aeecd2a0ae6aff5e1936c36da3abf1baab76532 Mon Sep 17 00:00:00 2001 From: Phil Varner Date: Fri, 8 Nov 2024 12:04:50 -0500 Subject: [PATCH] Fixes tags on /products routes to be Products instead of Product or non-existent --- src/stapi_fastapi/routers/product_router.py | 4 ++++ src/stapi_fastapi/routers/root_router.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/stapi_fastapi/routers/product_router.py b/src/stapi_fastapi/routers/product_router.py index ac2ae4a..e8efb56 100644 --- a/src/stapi_fastapi/routers/product_router.py +++ b/src/stapi_fastapi/routers/product_router.py @@ -39,6 +39,7 @@ def __init__( name=f"{self.root_router.name}:{self.product.id}:get-product", methods=["GET"], summary="Retrieve this product", + tags=["Products"], ) self.add_api_route( @@ -49,6 +50,7 @@ def __init__( response_class=GeoJSONResponse, response_model=OpportunityCollection[Geometry, self.product.constraints], summary="Search Opportunities for the product", + tags=["Products"], ) self.add_api_route( @@ -57,6 +59,7 @@ def __init__( name=f"{self.root_router.name}:{self.product.id}:get-constraints", methods=["GET"], summary="Get constraints for the product", + tags=["Products"], ) self.add_api_route( @@ -67,6 +70,7 @@ def __init__( response_class=GeoJSONResponse, status_code=status.HTTP_201_CREATED, summary="Create an order for the product", + tags=["Products"], ) def get_product(self, request: Request) -> Product: diff --git a/src/stapi_fastapi/routers/root_router.py b/src/stapi_fastapi/routers/root_router.py index fed6635..11fe7d7 100644 --- a/src/stapi_fastapi/routers/root_router.py +++ b/src/stapi_fastapi/routers/root_router.py @@ -48,7 +48,7 @@ def __init__( self.get_products, methods=["GET"], name=f"{self.name}:list-products", - tags=["Product"], + tags=["Products"], ) self.add_api_route(