reitit/examples/http-swagger/README.md
2018-10-21 23:37:11 +03:00

23 lines
408 B
Markdown

# 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
http POST :3000/math/plus x:=1 y:=2
http GET :3000/async results==1 seed==reitit
```
<img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/http-swagger/swagger.png" />
## License
Copyright © 2018 Metosin Oy