In compojure-api I noticed this two ways of specifying the API of a resource:
(POST* "/register" []
:body [user UserRegistration]
(ok)))
and
(POST* "/register" []
:body-params [username :- String,
password :- String]
(ok)))
What are the difference between these two? What are the implications of using one vs the other?