reitit/examples/ring-example
Joel Kaasinen f4da07c222
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
Release 0.9.2
2025-10-28 14:57:54 +02:00
..
src/example update example 2018-08-27 09:12:09 +03:00
.gitignore ring-example 2017-12-03 17:43:40 +02:00
project.clj Release 0.9.2 2025-10-28 14:57:54 +02:00
README.md update example 2018-08-27 09:12:09 +03:00

Ring example

A Sample project with ring.

Usage

> lein repl
(start)

To test the endpoints using httpie:

# Plain
http GET :3000/plain/plus x==1 y==20
http POST :3000/plain/plus x:=1 y:=20

# Schema
http GET :3000/schema/plus x==1 y==20
http POST :3000/schema/plus x:=1 y:=20

# Data-specs
http GET :3000/dspec/plus x==1 y==20
http POST :3000/dspec/plus x:=1 y:=20

# Specs
http GET :3000/spec/plus x==1 y==20
http POST :3000/spec/plus x:=1 y:=20

License

Copyright © 2017-2018 Metosin Oy