Closed ryaison closed 4 months ago
In general, body is not universally needed for every method across various api providers, and it would be nice to be able set a bool true/false to be able to toggle its inclusion for read, create, etc.
create_include_data = false destroy_include_data = false
something like that (obviously name debatable)
that kind of thing. (maybe a better name,
Oh dear - my apologies, folks. I missed a subtle bug during review of the new feature last week! I have corrected the bug (as well as made the check a bit less magic-y) in 7ffe6b3f40847505089380ad947dcbf5301bdb4e
Version v1.19.1 is building now
The addition of read_data support now results in errors when querying an API that doesn't support a body when using the GET method.
A working api_client.go sends
A non-working api_client.go sends
As indicated in RFC 7231:
Can we add a default or argument to not send a body with a GET unless there's a read_data value?