reitit/examples/ring-example
2018-03-17 14:32:51 +02: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.1-SNAPSHOT 2018-03-17 14:32:51 +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