ring-swagger 2020-10-27

@bastilla has joined the channel

hi there! Could someone point me to sample code showing how to transfer JSON between client and server? So far I just deal with scalar strings, like this:

:swagger {:produces ["text/plain"]}
            :parameters {:query {:add string? :location string? }}
            ;:responses {200 {:body string?}}
            :handler (fn [{{{:keys [add location]} :query} :parameters}]
but this becomes cumbersome and unfeasible at some point. Appreciate any hints (or links)!

Just found it:

:parameters {:body {:my-json map?}}
Everything else is the same.

@jumar has left the channel