reitit/examples/ring-swagger/README.md

24 lines
402 B
Markdown
Raw Normal View History

2018-04-29 12:25:56 +00:00
# Ring with Swagger example
2018-04-19 19:58:59 +00:00
## Usage
```clj
> lein repl
2018-04-29 12:18:30 +00:00
(start)
2018-04-19 19:58:59 +00:00
```
To test the endpoints using [httpie](https://httpie.org/):
```bash
2018-09-05 10:14:31 +00:00
http GET :3000/math/plus x==1 y==20
http POST :3000/math/spec/plus x:=1 y:=20
2018-04-19 19:58:59 +00:00
2018-09-05 10:14:31 +00:00
http GET :3000/swagger.json
2018-04-19 19:58:59 +00:00
```
2018-08-22 19:45:13 +00:00
<img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/ring-swagger/swagger.png" />
2018-04-29 12:22:09 +00:00
2018-04-19 19:58:59 +00:00
## License
2018-05-20 18:45:11 +00:00
Copyright © 2017-2018 Metosin Oy