flask-restful-swagger
flask-restful-swagger copied to clipboard
how can I add two resource in one page?
I add the API resource like below( omit some code), but I can only open the API1 link and see the two APIs under one resource. Please guide..

api1 = swagger.docs(Api(app), apiVersion='0.1', basePath='http://10.24.32.5:10001', resourcePath='/', produces=["application/json", "text/html"], api_spec_url='/api1', description='extract Top3 keywords from text') api2 = swagger.docs(Api(app), apiVersion='0.1', basePath='http://10.24.32.5:10001', resourcePath='/', produces=["application/json", "text/html"], api_spec_url='/api2', description='search related news') ... api1.add_resource(KeywordModel, '/docs/api1') api2.add_resource(SearchModel, '/docs/test')
Hi @aibati2008
There is a similar open issue here: https://github.com/rantav/flask-restful-swagger/issues/35
See the comment made by lounagen.