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

Mapping Hydra Objects to OpenAPI Objects. #193

Closed
chrizandr opened this issue May 17, 2018 · 4 comments
Closed

Mapping Hydra Objects to OpenAPI Objects. #193

chrizandr opened this issue May 17, 2018 · 4 comments
Assignees

Comments

@chrizandr
Copy link
Member

Hydra representations of Objects needs to be mapped with OpenAPI objects.

The end goal is that given an OpenAPI Spec, we can generate an equivalent Hydra API Documentation that represents an API with the same functionality.

All discussions from #149 apply here.

Please specify features of the OpenAPI spec and we can discuss equivalent functionality in the Hydra spec.

@vaibhavchellani
Copy link
Contributor

vaibhavchellani commented May 18, 2018

In OAS they reference the type of object they want in param from the definitions of objects the user defines in the doc .
View this for example
How do i implement the readOnly, writeOnly here ?

Right now i am parsing the "classes" , making them the "title" of definitions and "supportedProps" the "properties" . How do i put access control on this ?

The solution i have in mind is defining multiple definitions according to readOnly and witeOnly , then refer those when required instead of the whole class .
For example if a class has password and username as properties where password is readable:false , i will make another definition with no password property and reference it with a "GET" request .
Please suggest @Shekharrajak @xadahiya @chrizandr

@chrizandr
Copy link
Member Author

Could you give an example for more clarity? The link you provided does not seem to be working.

@vaibhavchellani
Copy link
Contributor

i updated the link , sorry for that .
Now that we are going for Open Api -> Hydra , i think i wont face this issue , will ask again if i do .

@Mec-iS
Copy link
Contributor

Mec-iS commented Jun 24, 2018

@xadahiya xadahiya closed this as completed Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants