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

Start DocApi development #1

Open
Mec-iS opened this issue Apr 8, 2019 · 8 comments
Open

Start DocApi development #1

Mec-iS opened this issue Apr 8, 2019 · 8 comments

Comments

@Mec-iS
Copy link
Contributor

Mec-iS commented Apr 8, 2019

As the objective of this repo is to create an hydrus deployment with the characteristics defined by the "Real World Example", we start analyzing the views and models for the Flask app to turn them into an Hydra documentation file.
The Example app is a basic Medium.com clone, the Flask deployment is called "Conduit"; three main classes of objects are defined:

  • Articles
  • Profiles
  • Users

Articles

Profiles

  • Same as Articles, there are some models and views that needs to be translated

Users

  • Same as Articles, there are some models and views that needs to be translated

I will add an ApiDoc template to the repo via PR.

Best way to start is to find the relevant schemas at schema.org; for example an Article is probably an instance of class BlogPosting.

@Mec-iS
Copy link
Contributor Author

Mec-iS commented Apr 8, 2019

Template

@vddesai1871
Copy link
Collaborator

Sounds like an interesting exercise!

It would be great if we can document this process somewhere (including what you have written above, the process of finding relevant schema definitions, creation of ApiDoc, running hydrus with that ApiDoc and other details). To provide a go-to guide explaining creation of HTTP-API with hydrus. Will bridge the gap between various documentation pieces we have right now and provide a very useful guide for anyone new to hydrus or semantic web in general.

@knakul853
Copy link

@vddesai1871 sounds cool can we open issue for this?

@Mec-iS
Copy link
Contributor Author

Mec-iS commented Apr 8, 2019

Possibly the first step is to map Real-World-App objects classes to schema.org classes

@vddesai1871
Copy link
Collaborator

Possibly the first step is to map Real-World-App objects classes to schema.org classes

If I am not missing something,

  1. The first part would be to identify all the classes as you mentioned in the issue description and see whether the identified class would be a collection class or not.
  2. Then we will have to map the properties of these class to schema.org classes
  3. Then identify valid operations over each class and identify entrypoint details.

@Mec-iS
Copy link
Contributor Author

Mec-iS commented Apr 8, 2019

The first part would be to identify all the classes as you mentioned in the issue description and see whether the identified class would be a collection class or not.

Yeah, first is to write down the HydraClasss mapping the models and their properties. Then write down the Hydra:Resources and Hydra:Collections. Finally the Hydra:Entrypoint for all the resources/collections.

@gustavodemorais
Copy link
Collaborator

Studying the specification of the backend API at https://github.com/gothinkster/realworld/tree/master/api there is something I cannot get my head around yet:

  • How to recover multiple Articles and not the entire collection according to filters, as the image below show:

image

So far we don't have a way to process requests from what I understand.

@Mec-iS
Copy link
Contributor Author

Mec-iS commented Apr 12, 2019

@Guttz Exactly, for that part we need to wait to integrate IRItemplate specs in hydrus.
In the meanwhile we can implement resources and collections without the filters.

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

No branches or pull requests

4 participants