mirror of
https://github.com/metosin/reitit.git
synced 2025-12-16 16:01:11 +00:00
|
Some checks failed
testsuite / Clojure (Java 11) (push) Has been cancelled
testsuite / Clojure (Java 17) (push) Has been cancelled
testsuite / Clojure (Java 21) (push) Has been cancelled
testsuite / ClojureScript (push) Has been cancelled
testsuite / Lint cljdoc.edn (push) Has been cancelled
testsuite / Check cljdoc analysis (push) Has been cancelled
|
||
|---|---|---|
| .. | ||
| resources | ||
| src/example | ||
| .gitignore | ||
| project.clj | ||
| README.md | ||
| swagger.png | ||
Http with Swagger/OpenAPI example
Usage
> 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:
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
License
Copyright © 2018-2023 Metosin Oy