update README

This commit is contained in:
Tommi Reiman 2018-09-05 13:14:31 +03:00
parent 98707902ea
commit 1a3a483866

View file

@ -10,15 +10,12 @@
To test the endpoints using [httpie](https://httpie.org/): To test the endpoints using [httpie](https://httpie.org/):
```bash ```bash
http GET :3000/api/schema/plus x==1 y==20 http GET :3000/math/plus x==1 y==20
http GET :3000/api/spec/plus x==1 y==20 http POST :3000/math/spec/plus x:=1 y:=20
http GET :3000/api/swagger.json http GET :3000/swagger.json
``` ```
* swagger.json: http://localhost:3000/api/swagger.json
* swagger-ui: http://localhost:3000/api-docs/
<img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/ring-swagger/swagger.png" /> <img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/ring-swagger/swagger.png" />
## License ## License