Skip to content

intuition-io/illusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status Build Status Coverage Status

Fake it until you make it

illusion is a little tool that emulates Telepathy RESTful API for developing clients and integration tests.

It also provides a convenient documentation of available backend endpoints.

Quickstart

# Install globally the command line utility
npm install -g an-illusion

# And check everything worked fine
illusion -h
illusion fakeit -h
illusion doc -h

You can either consult the API with illusion doc or fire up a fake server :

$ illusion fakeit --datapoints 3,6,100 --metric portfolio:cash,daily_perf:returns --id someone
[18:45:42] illusion version 0.1.0
[18:45:42] Emulating Telepathy server on port 3333

From there most of telepathy endpoints are available

$ curl localhost:3333/v0/health
{ 
  "states": {
    "celery workers": "not implemented",
    "telepathy": true
  },
  "versions": {
    "celery": "3.1.14",
    "insights": "0.3.2",
    "intuition": "0.4.3",
    "telepathy": "0.0.8"
  }
}

Conventions

The project follows some wide-accepted guidelines

Authors

Selfie Name Twitter
text Xavier Bruhiere @XavierBruhiere

License

Copyright 2014 Xavier Bruhiere. illusion is available under the MIT Licence.

About

Intuition http api emulation and documentation

Resources

License

Stars

Watchers

Forks

Packages

No packages published