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

@doc.pruduces not working #76

Closed
gangtao opened this issue Mar 2, 2019 · 2 comments
Closed

@doc.pruduces not working #76

gangtao opened this issue Mar 2, 2019 · 2 comments

Comments

@gangtao
Copy link

gangtao commented Mar 2, 2019

@dataset_svc.get('/datasets', strict_slashes=True)
@doc.summary('list all datasets')
@doc.produces([{"name": str, "id": str, "type": str}])
async def list_datasets(request):
dataset_class = get_dataset_class('CSV')
try:
datasets = dataset_class.list_datasets()
return response.json(datasets, status=200)
except Exception:
return response.json({}, status=500)

there is nothing produced, what could be the reason?

@gangtao
Copy link
Author

gangtao commented Mar 2, 2019

it is a duplicated issue of #50
@doc.route() is the workaround

@chenjr0719
Copy link
Member

@doc.produces() is worked after merge #58, close this issue.

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