"As a Reader, I want to get the current version of a media file, so I can read, view or listen to it. "
GET /file/{title}
Get information about a file.
Notable request headers: none
Request body: None
Status:
200 - OK
404 – No such file
Notable Headers: none
Body: JSON
- title: title of the file
- latest: latest file revision, with the following properties:
- timestamp: last modified timestamp, YYYY-MM-DDTHH:MM:SSZ
- user: user object for the uploader with the following properties
- id: numeric ID or null
- name: registered user name or other identifier
- default: information on the default, easy representation of the file for representation in a document, with these elements
- mediatype: media type for the preferred representation of the file
- size: size of the preferred representation of the file in bytes
- width: width of the preferred representation of the file in pixels if applicable (image, video, audio ...?)
- height: height of the preferred representation of the file in pixels if applicable (image, video, ...?)
- duration: temporal duration of the the preferred representation of the file in seconds if applicable (video, audio, animated gif/png, ...?)
- url: full URL of the binary version of the preferred representation of the file (the image/audio/video/document itself)
- thumbnail: information on a bitmap image smaller than 512x512 pixels, that represents the file, such a smaller version of an image file, a still from a video, or an icon for audio or a document {size, width, height, duration, mediatype, url}
- original: information on the original representation of the file as uploaded, with {size, width, height, duration, mediatype, url}
- file_description_url: URL to the HTML page for the file description, which can help with license information