Fork me on GitHub
#luminus
<
2019-11-19
>
lucian30323:11:37

i'm trying to define an API endpoint that uses POST and takes a JSON body w/ two string params (term/definition) using the compojure/compojure api in luminus (https://github.com/metosin/compojure-api/wiki/Building-Documented-Apis) but i can't seem to figure it out. the equivalent GET request is:

(GET "/definition-grade" []
      :query-params [term :- String
                     definition :- String]
      (send-response (definition-grade/definition-grade term definition) :json))
any ideas?