mirror of
https://github.com/metosin/reitit.git
synced 2025-12-24 02:48:25 +00:00
doc: openapi content type for file download in examples/http-swagger
This commit is contained in:
parent
224acf930e
commit
6c3db02163
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@
|
|||
["/download"
|
||||
{:get {:summary "downloads a file"
|
||||
:swagger {:produces ["image/png"]}
|
||||
:responses {200 {:description "an image"
|
||||
:content {"image/png" any?}}}
|
||||
:handler (fn [_]
|
||||
{:status 200
|
||||
:headers {"Content-Type" "image/png"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue