You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it is possible for multiple function definitions in the sam template. Currently it seems like it just proxies everything to the server that then does the routing (if my understanding is correct). As I currently understand, the current method would require a different executable defined in the package, which would also mean an openapi.yaml and openapi-generator-config.yaml file for each executable even though they are sharing the same file.
Instead of
Resources:
# Lambda function
PetStore:
Type: AWS::Serverless::Function
Properties:
Events:
# pass through all HTTP verbs and paths
Api:
Type: HttpApi
Properties:
Path: /{proxy+}
Method: ANY
To
Resources:
GetPetbyId:
Type: AWS::Serverless::Function
Properties:
CodeUri: <Whatever this would be>
Events:
Api:
Type: HttpApi
Properties:
Method: get
Path: /pet/{petId}
GetPetsbyTags:
Type: AWS::Serverless::Function
Properties:
CodeUri: <Whatever this would be>
Events:
Api:
Type: HttpApi
Properties:
Method: get
Path: /pet/findbytags
GetPetsbyStatus:
Type: AWS::Serverless::Function
Properties:
CodeUri: <Whatever this would be>
Events:
Api:
Type: HttpApi
Properties:
Method: get
Path: /pet/findbyStatus
UpdatePet:
Type: AWS::Serverless::Function
Properties:
CodeUri: <Whatever this would be>
Events:
Api:
Type: HttpApi
Properties:
Method: put
Path: /pet
AddPet:
Type: AWS::Serverless::Function
Properties:
CodeUri: <Whatever this would be>
Events:
Api:
Type: HttpApi
Properties:
Method: post
Path: /pet
The text was updated successfully, but these errors were encountered:
I was wondering if it is possible for multiple function definitions in the sam template. Currently it seems like it just proxies everything to the server that then does the routing (if my understanding is correct). As I currently understand, the current method would require a different executable defined in the package, which would also mean an
openapi.yaml
andopenapi-generator-config.yaml
file for each executable even though they are sharing the same file.Instead of
To
The text was updated successfully, but these errors were encountered: