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

Allow returns/expects to be expressed in terms of a media type; what about multiple types? #22

Closed
lanthaler opened this issue Dec 17, 2013 · 2 comments

Comments

@lanthaler
Copy link
Member

This is, e.g., necessary for things such as images. It is also necessary to define how multiple types in expects/returns should be interpreted. Do requests/responses need to be instances of all classes or just of at least one?

@vanthome
Copy link

schema.org has for its hydra:expects counterpart corresponding properties for media types of the input and output schema:encodingType and schema:contentType.
One could define multiple operations, one per type, if the content types would differ per @type.
At lease for the input part I think there should be a corresponding concept in hydra.
For the output it can make sense for documentation purposes (we had a similar discussion already I remember).

@alien-mcl
Copy link
Member

This should be covered by the PR #186 - closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants