-
Notifications
You must be signed in to change notification settings - Fork 12
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
Media types for openEO #532
Comments
In case someone is wondering what vnd means (like myself): it stands for "vendor" (e.g. see https://en.wikipedia.org/wiki/Media_type#Vendor_tree) Do I understand correctly we have to register that |
At some point we should register the individual media types at IANA if we think this gets more commonly used. But we can start without reigistratrion... |
FYI this discussion seems to become relevant in context of APEx: ESA-APEx/apex_algorithms#67 (cc @JanssenBrm ) To verify: combined with the "remote process definition" (from #538 / #540 ): |
Currently the media type is always The primary issue with a different media type is that many clients don't do propert media type checks, e.g. they just do something like
My take/recommendation for openEO servers and clients is currently to try to use Similar discussions are also happening in OGC for OGC APIs, by the way:
|
Originally written in ESA-APEx/apex_algorithms#67 (comment) I'd propose to NOT use application/vnd.openeo.process+json anymore. The new proposal above is much easier to register with IANA as it just requires one registration instead of multiple registrations. So instead of application/vnd.openeo.process+json better use application/vnd.openeo+json; type=process. If we don't care about IANA, we could also do application/json; profile=openeo-process. This would have the benefit that a "well-behaved client" (one that parses media types correctly) could already support the new media type without changes. Any thoughts or preferences? I just want to ensure that we think about this enough before locking in on anything that may be an issue later. |
For some cases it might be good to have specific media types for openEO responses or links, e.g. when combining openEO and OGC API - Processes.
I'd propose to use something like
application/vnd.openeo+json
with a type parameter:application/vnd.openeo+json; type=X
where X could be:process
, i.e.application/vnd.openeo+json; type=process
processes
batchjobs
The text was updated successfully, but these errors were encountered: