Skip to content
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

Issue 116 - allowing HAPI to serve images #166

Merged
merged 25 commits into from
Apr 3, 2023
Merged

Issue 116 - allowing HAPI to serve images #166

merged 25 commits into from
Apr 3, 2023

Conversation

jvandegriff
Copy link
Collaborator

This is ready for review.

We ended up only making a small change. No new type, just a new, optional stringType attribute for a string parameter that allows the server to indicate that string values contains URIs.

There is also warning language to tell people not just to make file listings available - the main intent of HAPI is still to make data content available.

initial take at new URI type for parameters
wording improvements; exploring a `uriInfo` keyword to house optional URI details.
still needs proofreading and tweaking; note that previous commit was a partial version
also rearranged some lines in the parameters attributes table to put all required items first; added vector elements to a mag field example

The `stringType` attribute is a way to indicate that a string parameter is to be interpeted in a specific way. Currently, the only allowed special `stringType` is `uri`, and this allows a HAPI server to list pointers to other reources.

The value of the `stringType` attribute can either be the simple string `uri` or an object that is a dictionary with `uri` as the key and a value that is another object with two optional elements: `mediaType` and `scheme`. The media type (also referred to as MIME type) indicates what type of data each URI points to, and the `scheme` describes the access protocol. HAPI places no contraints on the values for `mediaType` or `scheme`, but servers should use standard values for these, such as `image/fits` or `image/png` or `application/x-cdf` for `mediaType` and `http` or `https` or `ftp` or `doi` or `s3` for `scheme`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is image/fits a standard? Or is it image/x-fits similar to x-cdf?

@jvandegriff jvandegriff merged commit 74187e4 into master Apr 3, 2023
@jvandegriff jvandegriff deleted the issue-116 branch April 3, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants