We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@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)
@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?
The text was updated successfully, but these errors were encountered:
it is a duplicated issue of #50 @doc.route() is the workaround
Sorry, something went wrong.
@doc.produces() is worked after merge #58, close this issue.
@doc.produces()
No branches or pull requests
@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?
The text was updated successfully, but these errors were encountered: