Because sometimes you just gotta fake it (a webservice that is)
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/faker
test/faker
.gitignore
README.md
conf.clj
project.clj

README.md

faker

Just a quick little app which lets you fake a web response really fast. Right now it only supports the customization of the response code and the response itself.

Usage

Either run using:

lein run config_filename

or compile as an uberjar and run like so:

java -jar the_uberjar config_filename

faker will then create a server at: localhost:8080

The following is a sample config file which defines two routes

[{:verb :get
  :path "/"
  :res "HELLO WORLD"
  :code 401}
 {:verb :get
  :path "/another"
  :res "ANOTHER ONE"
  :code 200}]

License

Copyright © 2012 Josh Comer

Distributed under the Eclipse Public License, the same as Clojure.