Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiencorpataux/relrest
A Relational REST Interface
https://github.com/damiencorpataux/relrest
Last synced: 2 days ago
JSON representation
A Relational REST Interface
- Host: GitHub
- URL: https://github.com/damiencorpataux/relrest
- Owner: damiencorpataux
- Created: 2020-04-22T17:17:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T04:08:45.000Z (over 3 years ago)
- Last Synced: 2024-04-29T00:09:26.305Z (6 months ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RelRest
=**A Relational REST Interface.**
[![Build Status](https://travis-ci.org/damiencorpataux/relrest.svg?branch=master)](https://travis-ci.org/damiencorpataux/relrest?branch=master)
[![codecov](https://codecov.io/gh/damiencorpataux/relrest/graph/badge.svg)](https://codecov.io/gh/damiencorpataux/relrest)
...unittests are #todoSummary
-
Fetch the events summary, time, and their tag color
of all events that happened before the millenium and are related to tags containing bill?
Here we go!
```
GET /resource/+/+/event.time,event.summary,tag.color?/event.time.lt=2000-01-01/tag.id.like=%bill%
```Easily retrieve relational data
-
Up to an arbitrary depth and number of relationships.[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/ZPpMVd1nL-U/0.jpg)](https://www.youtube.com/watch?v=ZPpMVd1nL-U)
[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/AdiE3PbqxF4/0.jpg)](https://www.youtube.com/watch?v=AdiE3PbqxF4)Run the example REST service
-
In this example, RelRest is integrated into Flask for the HTTP layer, including authentication.
```
git clone [email protected]:damiencorpataux/relrest.git
cd relrestpython3 -m venv venv
. venv/bin/activatecd example
pip3 install -r requirements.txt
python -c "import data; data.populate()"
flask runopen http://localhost:5000
```