mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 08:51:12 +00:00
doc: examples/http-swagger: tags for openapi, openapi-feature
This commit is contained in:
parent
7defd98808
commit
20cafa3d9b
1 changed files with 5 additions and 3 deletions
|
|
@ -53,7 +53,7 @@
|
||||||
:handler (openapi/create-openapi-handler)}}]
|
:handler (openapi/create-openapi-handler)}}]
|
||||||
|
|
||||||
["/files"
|
["/files"
|
||||||
{:swagger {:tags ["files"]}}
|
{:tags ["files"]}
|
||||||
|
|
||||||
["/upload"
|
["/upload"
|
||||||
{:post {:summary "upload a file"
|
{:post {:summary "upload a file"
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
(io/resource "reitit.png"))})}}]]
|
(io/resource "reitit.png"))})}}]]
|
||||||
|
|
||||||
["/async"
|
["/async"
|
||||||
{:get {:swagger {:tags ["async"]}
|
{:get {:tags ["async"]
|
||||||
:summary "fetches random users asynchronously over the internet"
|
:summary "fetches random users asynchronously over the internet"
|
||||||
:parameters {:query (s/keys :req-un [::results] :opt-un [::seed])}
|
:parameters {:query (s/keys :req-un [::results] :opt-un [::seed])}
|
||||||
:responses {200 {:body any?}}
|
:responses {200 {:body any?}}
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
:body results})))}}]
|
:body results})))}}]
|
||||||
|
|
||||||
["/math"
|
["/math"
|
||||||
{:swagger {:tags ["math"]}}
|
{:tags ["math"]}
|
||||||
|
|
||||||
["/plus"
|
["/plus"
|
||||||
{:get {:summary "plus with data-spec query parameters"
|
{:get {:summary "plus with data-spec query parameters"
|
||||||
|
|
@ -129,6 +129,8 @@
|
||||||
:muuntaja m/instance
|
:muuntaja m/instance
|
||||||
:interceptors [;; swagger feature
|
:interceptors [;; swagger feature
|
||||||
swagger/swagger-feature
|
swagger/swagger-feature
|
||||||
|
;; openapi feature
|
||||||
|
openapi/openapi-feature
|
||||||
;; query-params & form-params
|
;; query-params & form-params
|
||||||
(parameters/parameters-interceptor)
|
(parameters/parameters-interceptor)
|
||||||
;; content-negotiation
|
;; content-negotiation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue