Stupid simple API reference for bottle.py web services

from blog Jason Scheirer on the Internet on Jason Scheirer, | ↗ original
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: @bottle.route('/') def index(): bottle.response.content_type = 'text/plain' return ("=== API REFERENCE ===\n" + "\n".join(x['rule'] for x...