Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 2bd738f

Browse files
philvarnerPhil Varner
andauthored
Fixes tags on /products routes to be Products instead of Product or non-existent (#98)
Co-authored-by: Phil Varner <[email protected]>
1 parent df6d1f0 commit 2bd738f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/stapi_fastapi/routers/product_router.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(
3939
name=f"{self.root_router.name}:{self.product.id}:get-product",
4040
methods=["GET"],
4141
summary="Retrieve this product",
42+
tags=["Products"],
4243
)
4344

4445
self.add_api_route(
@@ -49,6 +50,7 @@ def __init__(
4950
response_class=GeoJSONResponse,
5051
response_model=OpportunityCollection[Geometry, self.product.constraints],
5152
summary="Search Opportunities for the product",
53+
tags=["Products"],
5254
)
5355

5456
self.add_api_route(
@@ -57,6 +59,7 @@ def __init__(
5759
name=f"{self.root_router.name}:{self.product.id}:get-constraints",
5860
methods=["GET"],
5961
summary="Get constraints for the product",
62+
tags=["Products"],
6063
)
6164

6265
self.add_api_route(
@@ -67,6 +70,7 @@ def __init__(
6770
response_class=GeoJSONResponse,
6871
status_code=status.HTTP_201_CREATED,
6972
summary="Create an order for the product",
73+
tags=["Products"],
7074
)
7175

7276
def get_product(self, request: Request) -> Product:

src/stapi_fastapi/routers/root_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
self.get_products,
4949
methods=["GET"],
5050
name=f"{self.name}:list-products",
51-
tags=["Product"],
51+
tags=["Products"],
5252
)
5353

5454
self.add_api_route(

0 commit comments

Comments
 (0)