-
Notifications
You must be signed in to change notification settings - Fork 0
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
Response from Media Endpoint #13
Comments
Currently my media endpoint returns the following when I call it with q=source
|
I don't currently support this, but I just want to point to #14 here since the response should be the same for both. There was a discussion there about using
|
In order to address this, the initial agreement at the Micropub Popup 2020 was to require on upload a response that included a url property only. Any other properties are still pending for discussion, but suggested that it be considered based on prior art of EXIF properties. |
Copying notes from the wiki: Content-Type: application/json { "url": "https://media.aaronpk.com/filename.jpg" } This response currently produced by:
And consumed by:
|
Looking at Exif 2.32 http://www.cipa.jp/std/documents/download_e.html?DC-X010-2020, which is the latest version and makes some changes. EXIF has 3 time properties
Suggesting that updated might take the place of datetime. Other potentially useful properties to start
There are other properties, such as lens, camera make/model, ISO, aperture... And this only covers photos... |
Micro.blog now returns
|
Bumping this since @dshanske mentioned it in chat… I'd be in favor of adding image |
Agree about every piece of metadata. I'd like width, height, and dates...and to address the question of multiple sizes the server might generate. Many services have the concept of a thumbnail version in their returns, but it isn't consistent. @manton commented in chat that Micro.blog returns a 400w thumbnail for images. Because of different sizes/shapes of images, there is no good answer. |
The Micropub spec doesn't define a particular response body when uploading to the media endpoint. It only defines that the response include the created URL in the Location header. However, some tools are easier to work with if they can use the response body instead of having to parse the HTTP headers.
This should also be the same response format used when querying the endpoint to find the last thing uploaded or other proposed queries
The minimum response body is a url property. There are suggestions of other properties it might return, including parsed metadata, alternative file version, etc.
Etc.
The text was updated successfully, but these errors were encountered: