Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compojure or Noir for a UI-less webservice?

If one is planning to create a UI-less web service (receives JSON and/or XML, returns JSON and/or XML), does Noir provide anything useful over and above Compojure?

like image 336
Paul Butcher Avatar asked Feb 15 '12 16:02

Paul Butcher


2 Answers

I believe Noir makes it a bit simpler to create JSON responses with noir.response/json: http://ibdknox.github.com/noir/noir.response-api.html#noir.response/json

On the other hand JSON support in Noir is just a very thin wrapper around clj-json (basically only adds json content-type header) so you can use clj-json directly instead of Noir for this purpose.

like image 188
Rafał Dowgird Avatar answered Sep 22 '22 18:09

Rafał Dowgird


You should choose Compojure, as Noir is now deprecated.

You'll find deprecation notice and recommendations here: https://github.com/noir-clojure/noir

like image 38
clojureman Avatar answered Sep 26 '22 18:09

clojureman