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
ATM, we register an event handler for statistics export:
element.click(function() { var type = 'text/csv'; $.ajax({ accepts: { text: type }, url: url, processData: false, dataType: 'text', success: function(data) { saveAs(new Blob([data], { type: type }), filename); } }); });
But, in a scenario where the browser also adds some accepts headers, in front of our, the response might not be CSV.
E.g.
curl -u admin:PWD 'https://demo.roda-community.org/api/v1/index?returnClass=org.roda.core.data.v2.risks.IndexedRisk&&facet=currentSeverityLevel&lang=pt_PT&onlyActive=false&exportFacets=true&filename=risk-severity.csv' -H 'Accept: application/xml, text/csv, */*; q=0.01'
where it should be
curl -u admin:PWD 'https://demo.roda-community.org/api/v1/index?returnClass=org.roda.core.data.v2.risks.IndexedRisk&&facet=currentSeverityLevel&lang=pt_PT&onlyActive=false&exportFacets=true&filename=risk-severity.csv&acceptFormat=csv' -H 'Accept: application/xml, text/csv, */*; q=0.01'
The text was updated successfully, but these errors were encountered:
added translation on CSV content and added acceptFormat on URL to dow…
79b95b6
…nload it #1048 #1049
Done on b9ad289
Sorry, something went wrong.
b9ad289
nunovieira220
No branches or pull requests
ATM, we register an event handler for statistics export:
But, in a scenario where the browser also adds some accepts headers, in front of our, the response might not be CSV.
E.g.
where it should be
The text was updated successfully, but these errors were encountered: