Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

restful routing alternative for Clojure

branch: f/cheshire

This branch is 1 commit ahead and 31 commits behind develop

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 resources
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

Wakeful

Wakeful is a Restful routing alternative for Clojure. It makes it really easy to connect your web api to namespaces in your project.

Usage

(use 'wakeful.core)

(def handler (wakeful "awesome.api"))

Now http calls dispatch to methods calls in namespaces under awesome.api:

GET  /photo-123/thumbnail  -> awesome.api.photo/thumbnail
GET  /photo-123/tags       -> awesome.api.photo/tags
POST /photo-123/tag/user-1 -> awesome.api.photo/tag!
Something went wrong with that request. Please try again.