You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using Elasticsearch, we usually use queryDSL in the form of GET method and JSON request body. But when using Code snippet generated by OkHttp, we found that queryDSL was not included in the request body.
To Reproduce
See Screenshots
Expected code snippet and corresponding request
Just remove the GET method from the list
// Since Java OkHttp requires to add extralines of code to handle methods with body
+ const METHODS_WITHOUT_BODY = ['HEAD', 'COPY', 'UNLOCK', 'UNLINK', 'PURGE', 'LINK', 'VIEW'];- const METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'COPY', 'UNLOCK', 'UNLINK', 'PURGE', 'LINK', 'VIEW'];
Screenshots
Additional context
Version of postman-code-generators/Postman app: 8.7.0
The text was updated successfully, but these errors were encountered:
jizhuozhi
changed the title
Java - OkHttp Code snippet is not support sending payload when using GET method (and others)
Java - OkHttp Code snippet is not support sending payload when using GET method
Jun 29, 2021
Describe the bug
When using Elasticsearch, we usually use queryDSL in the form of GET method and JSON request body. But when using Code snippet generated by OkHttp, we found that queryDSL was not included in the request body.
To Reproduce
See Screenshots
Expected code snippet and corresponding request
Just remove the GET method from the list
Screenshots
Additional context
Version of postman-code-generators/Postman app: 8.7.0
The text was updated successfully, but these errors were encountered: