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: dev-unsubscr...@drill.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to