https://github.com/ffcactus/odata-batch
OData REST API batch operation demo
https://github.com/ffcactus/odata-batch
Last synced: 2 months ago
JSON representation
OData REST API batch operation demo
- Host: GitHub
- URL: https://github.com/ffcactus/odata-batch
- Owner: ffcactus
- Created: 2018-08-18T06:11:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T14:12:34.000Z (almost 8 years ago)
- Last Synced: 2025-01-02T03:19:05.392Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# odata-batch
OData REST API batch operation demo
Usage
For single operation:
curl \
--data '{"Value": 100}' \
-X POST localhost:3000/calculator/Actions/Calculator.Add
For batch operation:
curl \
-H 'Content-Type: multipart/mixed;boundary=$boundary' \
--data-binary batch_1111-2222-3333-4444
-F 'request={"Value": 1};type=application/http'
-F 'request={"Value": 2}'
-X POST localhost:3000/calculator/$batch