mirror of
https://github.com/metosin/reitit.git
synced 2025-12-23 18:41:11 +00:00
update README
This commit is contained in:
parent
98707902ea
commit
1a3a483866
1 changed files with 3 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue