(annotate doc obj)
Inputs: [doc :- spec/Operation obj]
Attaches swagger documentation to an object
Inputs: [doc :- spec/Operation obj] Attaches swagger documentation to an object
Gets documentation from an annotated object
Gets documentation from an annotated object
(paths route-table)
Inputs: [route-table] Returns: SwaggerPaths
Generates swagger paths from an expanded route table. This function can also be used to generate documentation offline or for easy debugging (turning schema checks on).
Inputs: [route-table] Returns: SwaggerPaths Generates swagger paths from an expanded route table. This function can also be used to generate documentation offline or for easy debugging (turning schema checks on).
(with-swagger route-table)
(with-swagger route-table docs)
Attaches swagger information as a meta key to each documented route. The context passed to each interceptor has a reference to the selected route, so information like request and response schemas and the swagger object can be retrieved from its meta.
Attaches swagger information as a meta key to each documented route. The context passed to each interceptor has a reference to the selected route, so information like request and response schemas and the swagger object can be retrieved from its meta.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close