[
https://issues.apache.org/jira/browse/DRILL-8140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497579#comment-17497579
]
ASF GitHub Bot commented on DRILL-8140:
---------------------------------------
cgivre opened a new pull request #2474:
URL: https://github.com/apache/drill/pull/2474
# [DRILL-8140](https://issues.apache.org/jira/browse/DRILL-8140): Add JSON
Post Body to HTTP Rest Storage Plugin
## Description
This PR allows the user to control where parameters are pushed down during
`POST` requests. The choices are:
* `query_string`: `POST` parameters (both filters and static) are pushed to
the query string.
* `post_body`: `POST` parameters (both filters and static) are pushed to the
post body as key/value pairs
* `json_body`: `POST` parameters (both filters and static) are pushed to the
post body as JSON.
The user can set this by adding the `postParameterLocation` parameter to an
API configuration. The default is `query_string`.
## Documentation
### Set the POST destination
The user can set the destination and format of POST parameters by adding the
`postParameterLocation` parameter to an API configuration. The default is
`query_string`.
The choices are:
* `query_string`: `POST` parameters (both filters and static) are pushed to
the query string.
* `post_body`: `POST` parameters (both filters and static) are pushed to the
post body as key/value pairs
* `json_body`: `POST` parameters (both filters and static) are pushed to the
post body as JSON.
## Testing
Added unit tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
> Add JSON Post Body to HTTP Rest Storage Plugin
> ----------------------------------------------
>
> Key: DRILL-8140
> URL: https://issues.apache.org/jira/browse/DRILL-8140
> Project: Apache Drill
> Issue Type: Improvement
> Components: Storage - Other
> Affects Versions: 1.19.0
> Reporter: Charles Givre
> Assignee: Charles Givre
> Priority: Major
> Fix For: Future
>
>
> Some APIs require information be sent as a JSON post body. This PR enables
> that.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)