Comments (8)
I've started documenting this in #18. A PR for a implementation in muncher exists, though the code is extremely basic (recognition only based on file extension, not actual content).
We would need to properly define the mappings between file extension and reported MIME types. Right now scripts (e.g. R scripts) are reported as application/octet-stream
, though interpreting them as text/plain
would make much more sense.
from api.
Here is a list of files we want to display (for now; each bulletpoint should have its own MIME type):
- svg
- geotiff
- all other image files which can be displayed via
<img>
- video files
- audio files
- .csv files
- everything else will be displayed as plain/text
- RData might be displayed differently
from api.
custom mime types can be configured in this file in the muncher: https://github.com/o2r-project/o2r-muncher/blob/master/config/custom-mime.json
from api.
@jansule Can you please check files from your list and clearly mark which ones do not work yet?
from api.
File types successfully tested:
- application/pdf
- all other image files which can be displayed via
<img>
- everything else will be displayed as plain/text
- svg
- geotiff
- video files
- audio files
- .csv files
- RData might be displayed differently (how? call
head
in an R session?) - markdown
- RMarkdown - treat specially?
- shapefile
from api.
@jansule prepares an example compendium with all potentially relevant file types
- example compendium
from api.
@jansule Please update the list of files that have not been tested yet here. And feel free to create an example compendium with all file types as part of o2r-muncher (in test/bagtainers
).
Thanks!
from api.
@jansule please update!
from api.
Related Issues (20)
- Do not create PDF on forks HOT 2
- Clarify content types of the API and extend the microservice's tests HOT 1
- Add stability levels to each endpoint
- Use different ORCID for examples
- Add body parameter to job creation for disabling all caches when executing a compendium
- Rename cookie or replace with Authentication: Bearer header
- Rename "job" resource to "reproduction"
- Add more fine-grained check levels
- Add API docs for bindings HOT 2
- Add option to save without publish, add action for publishing
- Add sub-resources links to compendium
- Add endpoint for supported/available computing environments
- Re-add PDF generation HOT 6
- Document Security Scheme in OpenAPI HOT 1
- Transform bindings spec to OpenAPI
- Support direct file upload for substitution
- Check if timestamps are correctly documented HOT 2
- Add option to delete jobs
- Switch from ISO-8601 to RFC-3339
- Improve PDF rendering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.