reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
benny 2020-09-17T20:04:34.127200Z

I have something like this but the swagger json doesn’t include the information about expected responses, am i missing something to tell swagger?

(ring/router
      [["/swagger.json"
        {:get {:no-doc  true
               :swagger {:info {:title       "api"
                                :description "API"}}
               :handler (swagger/create-swagger-handler)}}]
       ["/meta" {:get {:responses {200 {:body {:foo string?}}}
                       :handler   (fn [{baz :handler-param}]
                                    (meta-handler baz))}}]]
      {:data {:middleware [rrc/coerce-response-middleware]}})