Hi, can Ktor Locations read the json body of a POS...
# ktor
l
Hi, can Ktor Locations read the json body of a POST/PUT request and convert it to the expected entity in the route or a way to extend it into doing so? Looking at the code I only see a DefaultConversionService so maybe I should be able to create another one somehow?
or for what I see maybe I just need to extract the parameters from the json as send them to this conversion service. I'll try to play more with it
o
Locations are for uri + query/path params, they are not designed for request bodies
You need to install
GsonSupport
and use
call.receive<MyClass>()
l
ahh
cool