Fork me on GitHub
#reitit
<
2020-11-05
>
Joe13:11:23

Apologies this is a super basic question but I can't seem to find anything on Google. I can see that I can use keywords in path names to indicate a variable, like thing/:thing-id/sub-thing, but I'm not clear on how to then use the thing-id in my handler. Does it get passed in as part of the request?

manutter5113:11:19

You should end up with a :path-params key added to the incoming request, with a value like {:thing-id "some-id"}

Joe13:11:53

I see it - thanks very much!

ikitommi14:11:59

if you set up automatic parameter coercion, the coerced parameters will be copiend under [:parameters :path].