Is your feature request related to a problem? Please describe.
Currently, the useAdapterEndpoint component does not allow for any other content types, other than JSON, for POST and PUT requests
Describe the solution you'd like
Add a configuration option, similar to the GET request where the content type of the request can be changed
Additional context
The scenario in which this could be useful in my context is:
await axios.post(
adapterEndpointURL + "/api/0.1/loki-update",
formData,
{
headers: {
"Content-Type": "multipart/form-data",
},
}
);
This is where a file is being sent to an adapter, but must have the content type of multipart/form-data
Is your feature request related to a problem? Please describe.
Currently, the useAdapterEndpoint component does not allow for any other content types, other than JSON, for POST and PUT requests
Describe the solution you'd like
Add a configuration option, similar to the GET request where the content type of the request can be changed
Additional context
The scenario in which this could be useful in my context is:
This is where a file is being sent to an adapter, but must have the content type of
multipart/form-data