2026-02-15 01:07:25 -05:00
|
|
|
|
2022-02-10 02:03:38 -05:00
|
|
|
# Restful
|
|
|
|
|
|
|
|
|
|
REST (representational state transfer) service in ERPLibre, create a token and get data.
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
In your instance, install module `restful`.
|
|
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
|
|
The example works with application Helpdesk, install module `helpdesk_mgmt`.
|
|
|
|
|
|
|
|
|
|
You need to run with specified database, and you can run the example script.
|
|
|
|
|
|
|
|
|
|
```bash
|
2023-01-02 20:33:57 -05:00
|
|
|
./script/database/db_restore.py --database test
|
2022-02-10 02:03:38 -05:00
|
|
|
./script/addons/install_addons.sh test restful,helpdesk_mgmt
|
|
|
|
|
./run.sh -d test
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Test with the example while the server is running. You can add data manually.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./script/restful/restful_example.py
|
2026-02-15 01:07:25 -05:00
|
|
|
```
|