doc: add openapi response content type to examples/ring-spec-swagger

This commit is contained in:
Joel Kaasinen 2023-08-28 11:22:42 +03:00
parent e4c75c7354
commit 55854f6652

View file

@ -67,6 +67,8 @@
["/download"
{:get {:summary "downloads a file"
:swagger {:produces ["image/png"]}
:responses {200 {:description "an image"
:content {"image/png" {:schema string?}}}}
:handler (fn [_]
{:status 200
:headers {"Content-Type" "image/png"}