mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 08:21:11 +00:00
fix example
This commit is contained in:
parent
12f0970e39
commit
81dfe45b72
1 changed files with 4 additions and 4 deletions
|
|
@ -160,12 +160,12 @@ You can also specify request and response body schemas per content-type. The syn
|
|||
(ring/router
|
||||
["/api"
|
||||
["/example" {:post {:coercion reitit.coercion.schema/coercion
|
||||
:request {:content {"application/json" {:y s/Int}
|
||||
"application/edn" {:z s/Int}}
|
||||
:request {:content {"application/json" {:schema {:y s/Int}}
|
||||
"application/edn" {:schema {:z s/Int}}}
|
||||
;; default if no content-type matches:
|
||||
:body {:yy s/Int}}
|
||||
:responses {200 {:content {"application/json" {:w s/Int}
|
||||
"application/edn" {:x s/Int}}
|
||||
:responses {200 {:content {"application/json" {:schema {:w s/Int}}
|
||||
"application/edn" {:schema {:x s/Int}}}
|
||||
;; default if no content-type matches:
|
||||
:body {:ww s/Int}}}
|
||||
:handler ...}}]]
|
||||
|
|
|
|||
Loading…
Reference in a new issue