File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
infrastructure/swagger/swagger-fhir-generator-definitions Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1010# described in https://hl7.org/fhir/r4b/http.html
1111
1212Device : [create, read, search]
13- Product : [create, read]
13+ Product : [read]
Original file line number Diff line number Diff line change 1- from api_utils .api_step_chain import execute_step_chain_fhir as execute_step_chain
1+ from api_utils .api_step_chain import execute_step_chain
22from event .aws .client import dynamodb_client
33from event .environment import BaseEnvironment
44from event .logging .logger import setup_logger
Original file line number Diff line number Diff line change 1+ from http import HTTPStatus
12from typing import List
23
34from aws_lambda_powertools .utilities .data_classes import APIGatewayProxyEvent
4- from domain .core .cpm_product import CpmProduct
55from domain .repository .cpm_product_repository .v3 import CpmProductRepository
66from domain .repository .product_team_repository .v2 import ProductTeamRepository
77from event .step_chain import StepChain
@@ -20,15 +20,15 @@ def validate_product_team(data, cache) -> str:
2020 return product_team_repo .read (id = product_team_id )
2121
2222
23- def query_products (data , cache ) -> List [CpmProduct ]:
23+ def query_products (data , cache ) -> tuple [ HTTPStatus , List [dict ] ]:
2424 product_team_id = data [parse_incoming_path_parameters ]
2525 cpm_product_repo = CpmProductRepository (
2626 table_name = cache ["DYNAMODB_TABLE" ], dynamodb_client = cache ["DYNAMODB_CLIENT" ]
2727 )
2828 results = cpm_product_repo .query_products_by_product_team (
2929 product_team_id = product_team_id
3030 )
31- return [result .state () for result in results ]
31+ return HTTPStatus . OK , [result .state () for result in results ]
3232
3333
3434steps = [
You can’t perform that action at this time.
0 commit comments