reitit/examples/ring-malli-swagger/README.md
2023-05-03 17:17:25 +03:00

27 lines
588 B
Markdown

# reitit-ring, malli, swagger, openapi 3
## Usage
```clj
> lein repl
(start)
```
- Swagger spec served at <http://localhost:3000/swagger.json>
- Openapi spec served at <http://localhost:3000/openapi.json>
- Swagger UI served at <http://localhost:3000/>
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:=20
http GET :3000/swagger.json
```
<img src="https://raw.githubusercontent.com/metosin/reitit/master/examples/ring-spec-swagger/swagger.png" />
## License
Copyright © 2017-2023 Metosin Oy