Public bug reported:

A cry goes out for a binary file's metadata: URL of the file, size,
media type, etc. Currently a GET to the binary file resource redirects
to the actual file in the librarian. By examining the HTTP response (to
the original request or the redirect request) you can get this metadata,
but it would be useful to have a JSON representation of the binary file
resource so that clients like launchpadlib can examine this data in the
same way they examine other data.

(Alternatively, we could give lazr.restfulclient the ability to
introspect on these HTTP responses.)

The JSON representation would only be sent if the client sends
'application/json' in their Accept header. Otherwise they get the
redirect. This would cause a slight confusion when the underlying binary
file is a JSON document.

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
Publish a JSON representation of a binary file containing metadata
https://bugs.launchpad.net/bugs/406912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to