This release is a pre-release and may not be stable for production use.
Nereid Rest
Nereid Rest is a tryton module which adds RESTful API to Nereid.
Installation
Get the latest code from github and install:
pip install git+ssh://git@github.com/openlabs/nereid-rest.git@develop
Usage
After installing nereid-rest, access data of any model just by accessing /rest/model followed by the model name in the URL, which gives you model records as JSON:
GET, POST |
/rest/model/<mode.name> |
To get a specific record from a model:
GET, PUT, DELETE |
/rest/model/<mode.name>/<record_id> |
For example
To get all the records of party.party
/rest/model/party.party
Get data of record with id 5 from party.party model:
/rest/model/party.party/5
By default you only get the id and rec_name if there’s no serialize method in the model.
But, if there’s a serialize method in the model, nereid-rest will return whatever serialize method returns.
Metadata
Release files for openlabs_nereid_rest 3.0.1.0dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openlabs_nereid_rest-3.0.1.0dev1.tar.gz | 5.7 kB | Without provenance | Details for openlabs_nereid_rest-3.0.1.0dev1.tar.gz |
Release files / openlabs_nereid_rest-3.0.1.0dev1.tar.gz
| Download URL | openlabs_nereid_rest-3.0.1.0dev1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8639a6a00ebe536a1184662419695a9d65d054597a0414700b09bcf523953df3
|
|
BLAKE2b-256 checksum How to use checksums |
ad39dde0ede08dbdd6383e4c1416b3d1bbc01339e37f7098517010f28117f7f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for openlabs_nereid_rest 3.0.1.0dev1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.