reitit/examples/ring-example
2017-12-09 22:49:32 +02:00
..
src/example Cleanup Coercion 2017-12-09 22:49:32 +02:00
.gitignore ring-example 2017-12-03 17:43:40 +02:00
project.clj ring-example 2017-12-03 17:43:40 +02:00
README.md ring-example 2017-12-03 17:43:40 +02:00

Ring example

A Sample project with ring.

Usage

> lein repl

(require '[example.server :as server])

(server/restart)

To test the endpoints using httpie:

# 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 Metosin Oy