REST in CloServe
To make REST style http calls, you can use the register-dyna-action micro, for eg:
(ns ...
(:require [ring.util.response :as response]
...)
(register-dyna-action
#"^/sum/([\d]+)/([\d]+)$"
[req op1 op2]
(response/response (str "sum = " (+ (Long. op1) (+ (Long. op2 ))))))
Test it here: /sum/12345/54321