/
README
33 lines (19 loc) · 943 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# scrum
FIXME: write description
## Usage
Build th project:
$ lein deps
Start the src/scrum/webapp.clj with
$ lein repl
You'll get this WARNING for now:
WARNING: spit already refers to: #'clojure.core/spit in namespace: ring.util.servlet, being replaced by: #'clojure.contrib.duck-streams/spit
Then, open up a new shell and use curl to hit the webapp server on port 8081:
curl -X GET "http://localhost:8081/"
curl -X GET "http://localhost:8081/Celebrity"
curl -X GET "http://localhost:8081/Celebrity?name=Alonzo
curl -X GET "http://localhost:8081/Celebrity?surname=Church" (should get 2 records)
curl -X POST "http://localhost:8081/Celebrity?name=George&surname=Church" (will add a new record)
The last command will NOT persist the record. The static data is in the file test.xml
## License
Copyright (C) 2010 FIXME
Distributed under the Eclipse Public License, the same as Clojure.