Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pathParameters in apigateway-http-api-proxy event are not recognized #209

Open
MaheshVelankar opened this issue Jan 26, 2025 · 0 comments
Open

Comments

@MaheshVelankar
Copy link

MaheshVelankar commented Jan 26, 2025

I was expecting that in apigateway-http-api-proxy if the rawPath = /somepath/orderscheduling/{scheduleOrderGUID}
I want scheduleOrderGUID to get substituted with value = "some-guid-value-here"
so in the event json I provided as

"pathParameters": {
    "scheduleOrderGUID": "some-guid-value-here"
},

Thinking that scheduleOrderGUID will get substituted by some-guid-value-here.

However it does not. The path that reaches the mux is unsubstituted.

So I tried to take a look in the code however I did not find any mention of pathParameters in the go code. (There is code for putting in queryParameters ....but no code for pathParameters)

Is this correct?
How does one use the pathParameters object in the input event json ?

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant