mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 08:51:12 +00:00
Merge pull request #414 from Koura/issue-375-remove-top-level-tags
Replace top-level `:tags` with `[:swagger :tags]` path in documentation
This commit is contained in:
commit
9ca88d7165
1 changed files with 1 additions and 2 deletions
|
|
@ -29,7 +29,6 @@
|
|||
| --------------|-------------|
|
||||
| :swagger | map of any swagger-data. Must have `:id` (keyword or sequence of keywords) to identify the api
|
||||
| :no-doc | optional boolean to exclude endpoint from api docs
|
||||
| :tags | optional set of string or keyword tags for an endpoint api docs
|
||||
| :summary | optional short string summary of an endpoint
|
||||
| :description | optional long description of an endpoint. Supports http://spec.commonmark.org/
|
||||
|
||||
|
|
@ -52,7 +51,7 @@
|
|||
:handler reitit.swagger/swagger-spec-handler}}]
|
||||
|
||||
[\"/plus\"
|
||||
{:get {:tags #{:math}
|
||||
{:get {:swagger {:tags \"math\"}
|
||||
:summary \"adds numbers together\"
|
||||
:description \"takes `x` and `y` query-params and adds them together\"
|
||||
:parameters {:query {:x int?, :y int?}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue