Skip to main content

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.1 (2018-06-13)

- markdown fix


## 1.0.0 (2018-06-11)

- Initial release
[vangheem]


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guillotina_batch-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

guillotina_batch-1.0.1-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file guillotina_batch-1.0.1.tar.gz.

File metadata

File hashes

Hashes for guillotina_batch-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2c0f024ab95cb831d0086f71fc990e586bf46cf20a34598570ad88daa5109b41
MD5 d3b1e5f5927a11863f8d851c0db49e20
BLAKE2b-256 c781c7549595c0e7054c25723383c6137936d1bedd2f1e2a8178ad267e3f44b3

See more details on using hashes here.

File details

Details for the file guillotina_batch-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for guillotina_batch-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8942aa16a73c9e97f9301d77081013cb96e07dffbb88b490980bf1554842bc4
MD5 d988d064dd468b128e8da850950ae764
BLAKE2b-256 ef2e62f6598ecb6ea289229dd4e673a54437758d446e06a8dd5f8df8e764b3e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page