Jason Scheirer

A personal web site for a computer person

Stupid simple API reference for bottle.py web services

bottle.py python

I have a stupid json-only REST API I implemented in bottle.py. This introspects the default app, gives a dumb readout that should act as an adequate reference for discovery:

def index():
    bottle.response.content_type = 'text/plain'
    return ("=== API REFERENCE ===\n" +
            "\n".join(x['rule'] for x in