This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-31
Channels
- # aleph (37)
- # babashka (23)
- # beginners (46)
- # calva (1)
- # catalyst (12)
- # cider (3)
- # circleci (5)
- # clj-kondo (8)
- # clojure (188)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (84)
- # clojure-sweden (2)
- # clojure-uk (1)
- # clojurescript (6)
- # clr (1)
- # cursive (4)
- # datahike (4)
- # datascript (7)
- # datomic (31)
- # deps-new (16)
- # emacs (4)
- # fulcro (4)
- # gratitude (17)
- # hyperfiddle (24)
- # introduce-yourself (4)
- # jobs (5)
- # off-topic (84)
- # pathom (10)
- # polylith (21)
- # portal (6)
- # re-frame (6)
- # reitit (4)
- # releases (1)
- # sci (74)
- # specter (3)
- # tools-build (3)
- # tools-deps (5)
Hello! Is it possible to generate multiple swagger definitions with the Reitit builtin swagger support? Instead of having all the endpoints in a single Swagger document/page we would like to have multiple. The goal is to have different subsets of endpoints depending on who is the documentation intended for (private API, public API, etc...). Thx

Rolling your own is fairly straight forward. I would copy the reitit.swagger ns code to a ns you own, figure out how it works, then parameterize the handler on path or whatever.
Ok, great! We will explore that path. Thank you
I missed this [1] while reading the docs 😅. What I wanted to achieve is already supported by Reitit: [1] https://github.com/metosin/reitit/blob/master/doc/ring/swagger.md#multiple-swagger-apis