【发布时间】:2015-10-24 08:33:59
【问题描述】:
在使用 compojure-api 创建 API 时,在实践中使用 :body-params 和 :form-params 有什么区别?例如:
(POST* "/register" []
:body-params [username :- String,
password :- String]
(ok)))
对
(POST* "/register" []
:form-params [username :- String,
password :- String]
(ok)))
对于将由单页 clojurescript 应用和/或原生移动应用使用的 API,应该使用哪一个?
【问题讨论】:
标签: clojure swagger plumatic-schema compojure-api