Borrowing inspiration from the Devoxx Schedule Rest Inerface, this is the preliminary version of the Italian Agile Day 2012 conference rest server.
- lein midje
- lein cucumber
lein run
-
Create an event:
curl -v -H "Content-Type: application/json" -X POST -d '{"title":"whoa","description":"ops","category":"my","active":"true"}' http://localhost:8080/events
-
List all events:
-
Show a specific event:
-
Retrieve all events for a specific category:
-
Remove an event:
curl -i -H "Accept: application/json" -X DELETE http://localhost:8080/events/1
-
Update an event
curl -v -H "Content-Type: application/json" -X PUT -d '{"title":"change","description":"change","category":"my","active":"true"}' http://localhost:8080/events/1
-
Vimclojure .clojure ng-server classpath generation:
lein classpath > .clojure (in vim) :%s/:/\r/g
Copyright (C) 2012 The @reborg @ramptop collective Distributed under the Eclipse Public License, the same as Clojure.