This is an api builded in clojure that looks like a social friendlist
lein run => starts the webserver and generates => 127.0.0.1:3000
-
Shows welcome 127.0.0.1:3000/
-
show anybody created 127.0.0.1:3000/people
-
Create new person 127.0.0.1:3000/add?firstname="something"&lastname="somethingtoo"
-
Finds someone by id 127.0.0.1:3000/find?id=someid
-
Mark two people as friends 127.0.0.1:3000/connect?id=someid&idfriend=anotherid
-
Returns a list of friend suggests for someone by this guyid 127.0.0.1:3000/suggestions?id=someid
-
This only toggle person status to active or inactive 127.0.0.1:3000/update?id=someid
For runing tests it's preferable use:
- lein repl
- (require '[clojure.test :refer [run-tests]])
- (require 'nukr.core-test)
- (run-tests 'nukr.core-test)