mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
Test that middleware swagger injections work
This commit is contained in:
parent
f2e0470ecd
commit
681c994f7f
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,9 @@
|
|||
["/plus/:z"
|
||||
{:patch {:summary "patch"
|
||||
:handler (constantly {:status 200})}
|
||||
:options {:summary "options"
|
||||
:middleware [{:data {:swagger {:responses {200 {:description "200"}}}}}]
|
||||
:handler (constantly {:status 200})}
|
||||
:get {:summary "plus"
|
||||
:parameters {:query {:x int?, :y int?}
|
||||
:path {:z int?}}
|
||||
|
|
@ -125,6 +128,9 @@
|
|||
:paths {"/api/spec/plus/{z}" {:patch {:parameters []
|
||||
:summary "patch"
|
||||
:responses {:default {:description ""}}}
|
||||
:options {:parameters []
|
||||
:summary "options"
|
||||
:responses {200 {:description "200"}}}
|
||||
:get {:parameters [{:in "query"
|
||||
:name "x"
|
||||
:description ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue