batch endpoint for guillotina
Project description
# Guillotina Batch Docs
This package simple provides a `@batch` endpoint to Guillotina which
allows you to group multiple requests into one.
## Configuration
Just add a few lines to your config.yml::
{"applications": ["guillotina_batch"]}
## Usage
The `@batch` endpoint takes a array of batch definitions taking the following parameters:
- method:str
- endpoint:str
- headers:object[str, str]
- payload:object
For example::
```
POST /db/container/@batch [{
"method": "POST",
"endpoint": "path/to/object/@sharing",
"payload": {
"prinperm": [{
"principal": "user1",
"permission": "guillotina.AccessContent",
"setting": "AllowSingle"
}]
}
},{
"method": "POST",
"endpoint": "path/to/object2/@sharing",
"payload": {
"prinperm": [{
"principal": "user1",
"permission": "guillotina.AccessContent",
"setting": "AllowSingle"
}]
}
}]
```
1.0.2 (2018-06-13)
------------------
- try again
1.0.1 (2018-06-13)
- markdown fix
## 1.0.0 (2018-06-11)
- Initial release
[vangheem]
This package simple provides a `@batch` endpoint to Guillotina which
allows you to group multiple requests into one.
## Configuration
Just add a few lines to your config.yml::
{"applications": ["guillotina_batch"]}
## Usage
The `@batch` endpoint takes a array of batch definitions taking the following parameters:
- method:str
- endpoint:str
- headers:object[str, str]
- payload:object
For example::
```
POST /db/container/@batch [{
"method": "POST",
"endpoint": "path/to/object/@sharing",
"payload": {
"prinperm": [{
"principal": "user1",
"permission": "guillotina.AccessContent",
"setting": "AllowSingle"
}]
}
},{
"method": "POST",
"endpoint": "path/to/object2/@sharing",
"payload": {
"prinperm": [{
"principal": "user1",
"permission": "guillotina.AccessContent",
"setting": "AllowSingle"
}]
}
}]
```
1.0.2 (2018-06-13)
------------------
- try again
1.0.1 (2018-06-13)
- markdown fix
## 1.0.0 (2018-06-11)
- Initial release
[vangheem]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file guillotina_batch-1.0.2.tar.gz
.
File metadata
- Download URL: guillotina_batch-1.0.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c69a36e097d131c777c4d11378f3823056f93bf80f865ac984e84b9ba9be2df |
|
MD5 | e38f89c05f17b06e29ed63ab9964c4bb |
|
BLAKE2b-256 | 2c77f141efef274ba35744aee9129a2d530d2d6ba5315975d6f4644270381386 |
File details
Details for the file guillotina_batch-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: guillotina_batch-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc527d5d4ce67021cbe20126b56551e843383b6abd3c7e4f9ca4a9afe7847805 |
|
MD5 | 5f929ce1b2ceb3a092aeac8a0ede17a3 |
|
BLAKE2b-256 | 1a8e822125b972e82f76d8b020dfde92109854ca63ba7078f424b9fa20aa201b |