Is there a way to automatically generate REST API JSON description from Bottle routes
问题 In case of I'm having this code: class MyApp(): def __init__(self): self.bottle = Bottle() self.bottle.route('/')(self.show_api) self.bottle.route('/api/')(self.show_api) self.bottle.route('/api/item', method='PUT')(self.save_item) def show_api(self): return <JSON representation of the API?> Is it possible to get a REST API documentation in JSON format from that? fro some reason self.bottle.routes didn't return anything useful. Thanks! 回答1: Actually the right way to generate the JSON API