mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
swagger works now
This commit is contained in:
parent
2487364c9f
commit
d0f0189647
1 changed files with 19 additions and 1 deletions
|
|
@ -59,7 +59,25 @@
|
|||
:uri "/api/swagger.json"}))]
|
||||
(is (= {:x-id ::math
|
||||
:info {:title "my-api"}
|
||||
:paths {"/api/schema/plus" {:get {:summary "plus"}} ;; TODO: implement!
|
||||
:paths {"/api/schema/plus" {:get {:parameters [{:description ""
|
||||
:format "int32"
|
||||
:in "query"
|
||||
:name "x"
|
||||
:required true
|
||||
:type "integer"}
|
||||
{:description ""
|
||||
:format "int32"
|
||||
:in "query"
|
||||
:name "y"
|
||||
:required true
|
||||
:type "integer"}]
|
||||
:responses {200 {:description ""
|
||||
:schema {:additionalProperties false
|
||||
:properties {"total" {:format "int32"
|
||||
:type "integer"}}
|
||||
:required ["total"]
|
||||
:type "object"}}}
|
||||
:summary "plus"}}
|
||||
"/api/spec/plus" {:get {:parameters [{:description ""
|
||||
:format "int64"
|
||||
:in "query"
|
||||
|
|
|
|||
Loading…
Reference in a new issue