【发布时间】:2019-03-26 11:34:24
【问题描述】:
在下面的示例中,如何为路径参数 item-id 设置默认值?
(POST "/:id" [item-id]
:path-params [item-id :- Int]
:body [body Body]
:query-params [{item-name :- Str nil}]
:summary "Create or update a item."
(ok ...))
【问题讨论】:
标签: clojure compojure compojure-api