reitit/examples/http-swagger/README.md

24 lines
408 B
Markdown
Raw Normal View History

2018-09-07 20:11:59 +00:00
# Http with Swagger example
## Usage
```clj
> lein repl
(start)
```
To test the endpoints using [httpie](https://httpie.org/):
```bash
http GET :3000/math/plus x==1 y==20
2018-10-21 20:34:25 +00:00
http POST :3000/math/plus x:=1 y:=2
2018-09-07 20:11:59 +00:00
2018-10-21 20:34:25 +00:00
http GET :3000/async results==1 seed==reitit
2018-09-07 20:11:59 +00:00
```
2018-10-21 20:34:25 +00:00
<img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/http-swagger/swagger.png" />
2018-09-07 20:11:59 +00:00
## License
Copyright © 2018 Metosin Oy