(->default-internal-swagger-ui-html config)
Generate the html for swagger UI
Generate the html for swagger UI
(add-swagger-endpoints config)
Takes the config and returns it with the swagger endpoints added
Takes the config and returns it with the swagger endpoints added
(routes->swagger-map routes & {route-opt-map :route-opt-map})
Creates the json representation of the routes
Creates the json representation of the routes
(swagger-config? config)
Checks if the config has the required keys for swagger functionality. Required keys:
Checks if the config has the required keys for swagger functionality. Required keys: * :xiana/swagger * :xiana/swagger-ui
(swagger-dot-json routes & {type :type route-opt-map :route-opt-map})
Create swagger.json for all methods for each endpoint
Create swagger.json for all methods for each endpoint
(transform-endpoint [method
{{:keys [coercion no-doc swagger] :as data} :data
middleware :middleware
interceptors :interceptors}])
(transform-path [path _ api-verb-map] router)
Transform a path of a compiled route to swagger format.
Transform a path of a compiled route to swagger format.
(xiana-route->reitit-route [url opt-map & nested-routes :as route] all-methods)
(xiana-routes->reitit-routes routes all-methods)
Transforms routes to the proper reitit form.
Transforms routes to the proper reitit form.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close