-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for VNG in API responses and load requests (#4345)
* Send a VNG response for an API request whose negotiated content type is application/x-vng. * When loading data via POST /pool/{pool}/branch/{branch}, if the request content type is application/x-vng, copy the request body to a temporary file for the benefit of the VNG reader, which needs a reader that implements io.ReaderAt and io.Seeker. Closes #4251.
- Loading branch information
Showing
5 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
script: | | ||
source service.sh | ||
zed create -q test | ||
zq -f vng in.zson | | ||
curl -H Content-Type:application/x-vng --data-binary @- \ | ||
--fail $ZED_LAKE/pool/test/branch/main | zq -z commit:=0 - | ||
echo // | ||
zed query -z 'from test' | ||
inputs: | ||
- name: in.zson | ||
data: | | ||
{x:1} | ||
- name: service.sh | ||
|
||
outputs: | ||
- name: stdout | ||
data: | | ||
{commit:0,warnings:[]([string])} | ||
// | ||
{x:1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters