How to define and receive body from POST request? #769
Unanswered
alirezaalavi87
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Hi ! Here is a complete example : https://github.com/metosin/reitit/blob/master/examples/ring-malli-swagger/src/example/server.clj#L97 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi.
Say i have endpoint
/users, GET retrieves all users and POST with the body{"name": "foo", "lastName": "bar"}creates a new user.I can't find anywhere in the docs how to define and retrieve the body of a POST request.
I tried this but
body-paramsis always emptyAll reactions