liberator

ordnungswidrig 2016-05-02T12:36:57.000012Z

I don’t know of a solution but the resource function accepts a map containing the callback functions. This handy when you want to implement a lot of similar shaped resources.

ordnungswidrig 2016-05-02T12:37:57.000013Z

On the other hand, I think in your case, the resource implementation might stay the same for all schemas and the schema can be passed to the functions. Like this:

ordnungswidrig 2016-05-02T12:38:56.000014Z

(defresource schema-resource [schema]
  :handle-ok (fn [_] (str „This is the schema “ schema))
  …)