Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Because sometimes you just gotta fake it (a webservice that is)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 conf.clj
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.