Comments (4)
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.
@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.
Doc writer #38
from hydrus.
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)
- Define and implement a way to set right column types when auto-generating the database HOT 11
- Move all synchronisation functionalities into an extensions module, so to be optional HOT 2
- Add tests for PUT/DELETE request for multiple Class objects in test_app.py
- Change GET PUT POST DELETE requests format for collections HOT 1
- Optimise filtered resource query HOT 1
- Add to the documentation how to handle ApiDoc/schema changes HOT 6
- Foreign key relationship between Collection and managed Class
- Matching done in db_models for datatype needs to be stricter. HOT 3
- Tests for column datatypes in DB Models HOT 2
- Add support for datetime column in hydrus
- Coverage of logging is poor HOT 2
- Host domain is hardcoded to "localhost". Doesn't change after changing hydrus_server_url in deployment
- AttributeError while running setup.py HOT 2
- Update Readme.md HOT 3
- Error when trying to install HOT 2
- Typo in `demo.py` file HOT 2
- Issue in python version > 3.9
- Server is not listening to expected `PORT` and `API_NAME` HOT 1
- `hydrus serve` gives error
- Bruterforce-attack Facebook python
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydrus.