mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
doc: add openapi response content type to examples/ring-spec-swagger
This commit is contained in:
parent
e4c75c7354
commit
55854f6652
1 changed files with 2 additions and 0 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue