Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I add two resource in one page? #99

Open
aibati2008 opened this issue May 18, 2016 · 1 comment
Open

how can I add two resource in one page? #99

aibati2008 opened this issue May 18, 2016 · 1 comment

Comments

@aibati2008
Copy link

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..

image

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')

@kevwo
Copy link

kevwo commented Jul 2, 2016

Hi @aibati2008

There is a similar open issue here: #35

See the comment made by lounagen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants