Coder Social home page Coder Social logo

Comments (4)

Mec-iS avatar Mec-iS commented on June 9, 2024

Operations are the basic ones as stated in #3: CRUDs implemented through HTTP methods.

As in Hydra spec:

...
  "supportedOperation": [
    {
      "@type": "Operation",     # Hydra:Operation
      "title": "Creates a new comment",    # description
      "method": "POST",    # HTTP method
      "expects": "http://api.example.com/doc/#Comment",    # class of objects expected as input, defined in the ApiDoc itself 
      "returns": "http://api.example.com/doc/#Comment",   # class of objects returned
      "possibleStatus": [
        ... Statuses that should be expected and handled properly ...
      ]
    }

For example, in our case expects would have as value Subsystem_Spacecraft, so this class has to be in the ApiDocumentation, so we need a script to "port" the RDF-OWL declaration into the Hydra document declaration.

from hydrus.

Mec-iS avatar Mec-iS commented on June 9, 2024

@xadahiya @chrizandr
NOTE: for now we are in the right direction but the ApiDoc is still too much hard-coded. Try to generate/modify it at server runtime, wecan follow to prossible strategies and use different fallbacks:

  • parse the RDF vocabulary (if provided) and try to extract the ApiDoc from the metadata;
  • read the structure of the data as it is dumped and try to extract the ApiDoc from the instance data.
    As much you can do about this at the moment is fine, it cannot really be a perfect/general mechanism at the moment. As a way to go, focus on the instance data to grasp a list of classes of resources (HydraClass) and eventual relationships between these classes from the dumped data, and the then apply CRUD operations to what it's found.

from hydrus.

chrizandr avatar chrizandr commented on June 9, 2024

Doc writer #38

from hydrus.

Mec-iS avatar Mec-iS commented on June 9, 2024

ok. we need now to tell the end-user where he/she can write its own ApiDoc before running the app (same as WALK-THROUGH #54)

from hydrus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.