2017-12-03 15:43:40 +00:00
|
|
|
# Ring example
|
|
|
|
|
|
|
|
|
|
A Sample project with ring.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```clj
|
|
|
|
|
> lein repl
|
2018-08-27 06:12:09 +00:00
|
|
|
(start)
|
2017-12-03 15:43:40 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
To test the endpoints using [httpie](https://httpie.org/):
|
|
|
|
|
|
|
|
|
|
```bash
|
2018-08-27 06:12:09 +00:00
|
|
|
# Plain
|
|
|
|
|
http GET :3000/plain/plus x==1 y==20
|
|
|
|
|
http POST :3000/plain/plus x:=1 y:=20
|
|
|
|
|
|
2017-12-03 15:43:40 +00:00
|
|
|
# Schema
|
|
|
|
|
http GET :3000/schema/plus x==1 y==20
|
|
|
|
|
http POST :3000/schema/plus x:=1 y:=20
|
|
|
|
|
|
|
|
|
|
# Data-specs
|
|
|
|
|
http GET :3000/dspec/plus x==1 y==20
|
|
|
|
|
http POST :3000/dspec/plus x:=1 y:=20
|
|
|
|
|
|
|
|
|
|
# Specs
|
|
|
|
|
http GET :3000/spec/plus x==1 y==20
|
|
|
|
|
http POST :3000/spec/plus x:=1 y:=20
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
2018-05-20 18:45:11 +00:00
|
|
|
Copyright © 2017-2018 Metosin Oy
|