reitit/examples/ring-swagger/README.md

25 lines
414 B
Markdown
Raw Normal View History

2018-04-19 19:58:59 +00:00
# WIP: Ring + Swagger example
## 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
http GET :3000/api/schema/plus x==1 y==20
http GET :3000/api/spec/plus x==1 y==20
http GET :3000/api/swagger.json
```
2018-04-29 12:18:30 +00:00
* swagger.json: http://localhost:3000/api/swagger.json
* swagger-ui: http://localhost:3000/api-docs/index.html
2018-04-19 19:58:59 +00:00
## License
Copyright © 2017 Metosin Oy