我正在通过compojure-api使用ring-swagger。我有几个查询参数,我正在努力寻找一种方法来向单个查询参数添加描述。我可以添加整个端点的摘要,但这是不够的。
是否可以使用ring- swagger /compojure-api向单个查询参数添加swagger描述?
发布于 2020-02-07 15:17:51
compojure.api.sweet/describe。
例如:
(GET "/hello" []
:query-params [name :- (describe String "This is the swagger description for the parameter")]
(ok {:message (str "Hello, " name)}))https://stackoverflow.com/questions/60053261
复制相似问题