Stupid Simple API Reference for Bottle.py Web Services
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 in
bottle.app().routes))