mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
fix: :content coercion and :tags in examples/http-swagger
This commit is contained in:
parent
b0b9f8cbee
commit
aee0caa5c8
1 changed files with 5 additions and 5 deletions
|
|
@ -62,7 +62,7 @@
|
|||
:handler (openapi/create-openapi-handler)}}]
|
||||
|
||||
["/files"
|
||||
{:tags ["files"]}
|
||||
{:tags #{"files"}}
|
||||
|
||||
["/upload"
|
||||
{:post {:summary "upload a file"
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
{:get {:summary "downloads a file"
|
||||
:swagger {:produces ["image/png"]}
|
||||
:responses {200 {:description "an image"
|
||||
:content {"image/png" any?}}}
|
||||
:content {"image/png" {:schema any?}}}}
|
||||
:handler (fn [_]
|
||||
{:status 200
|
||||
:headers {"Content-Type" "image/png"}
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
(io/resource "reitit.png"))})}}]]
|
||||
|
||||
["/async"
|
||||
{:get {:tags ["async"]
|
||||
{:get {:tags #{"async"}
|
||||
:summary "fetches random users asynchronously over the internet"
|
||||
:parameters {:query (s/keys :req-un [::results] :opt-un [::seed])}
|
||||
:responses {200 {:body any?}}
|
||||
|
|
@ -102,7 +102,7 @@
|
|||
:body results})))}}]
|
||||
|
||||
["/math"
|
||||
{:tags ["math"]}
|
||||
{:tags #{"math"}}
|
||||
|
||||
["/plus"
|
||||
{:get {:summary "plus with data-spec query parameters"
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
{:status 200
|
||||
:body {:total (- x y)}})}}]]
|
||||
["/secure"
|
||||
{:tags ["secure"]
|
||||
{:tags #{"secure"}
|
||||
:openapi {:security [{"auth" []}]}
|
||||
:swagger {:security [{"auth" []}]}}
|
||||
["/get"
|
||||
|
|
|
|||
Loading…
Reference in a new issue