Closed AritraBanik08 closed 1 year ago
Thanks for the kind words!
Not too sure what you mean by params from the POST? If you are talking about query parameters then what you have should be correct. I ran a simple version myself and it all seems to work but if it doesn't for you then post the error and I'll try to reproduce
If you want to get the body then you can use ctx.body which returns the request body in the form of a string. There is also ctx.json for getting the body as JsonNode
It shows the error {"kind":"KeyError","detail":"key not found: check-in","status":400}
.
I want the data that the user is entering.
Hmm ok, is the user entering the input via a form? If so then you'll probably need to use ctx.urlForm() (and then access the values from that) instead since the form might be getting sent in the body instead of via query parameters
Thank you for your help and making such a great framework.
This is my code
Can you tell me how to get the params from the HttpPost parameter? Thank you for this amazing framework and love your great work.