reitit/examples/ring-example
Tommi Reiman 6b95fab88c 0.1.2
2018-06-06 10:43:59 +03:00
..
src/example :responses have :body, not :schema 2018-02-11 21:38:15 +02:00
.gitignore ring-example 2017-12-03 17:43:40 +02:00
project.clj 0.1.2 2018-06-06 10:43:59 +03:00
README.md Update copyrights 2018-05-20 21:45:11 +03: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-2018 Metosin Oy