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:
Tommi Reiman 2020-06-25 10:56:27 +03:00 committed by GitHub
commit 9ca88d7165
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,6 @@
| --------------|-------------| | --------------|-------------|
| :swagger | map of any swagger-data. Must have `:id` (keyword or sequence of keywords) to identify the api | :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 | :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 | :summary | optional short string summary of an endpoint
| :description | optional long description of an endpoint. Supports http://spec.commonmark.org/ | :description | optional long description of an endpoint. Supports http://spec.commonmark.org/
@ -52,7 +51,7 @@
:handler reitit.swagger/swagger-spec-handler}}] :handler reitit.swagger/swagger-spec-handler}}]
[\"/plus\" [\"/plus\"
{:get {:tags #{:math} {:get {:swagger {:tags \"math\"}
:summary \"adds numbers together\" :summary \"adds numbers together\"
:description \"takes `x` and `y` query-params and adds them together\" :description \"takes `x` and `y` query-params and adds them together\"
:parameters {:query {:x int?, :y int?}} :parameters {:query {:x int?, :y int?}}