Closed Estartu closed 8 months ago
Some of my API calls put json data via the request body on GET requests. To test these methods I have to use
testapp.request('/api/...', method='GET', body=dumps(dict).encode('UTF-8'))
For all other request methods there is a shortcut with *_json just get is missing.
The RFC disallow that AFAIK. You hava to use a POST/PUT method to send a body
Some of my API calls put json data via the request body on GET requests. To test these methods I have to use
testapp.request('/api/...', method='GET', body=dumps(dict).encode('UTF-8'))
For all other request methods there is a shortcut with *_json just get is missing.