Skip to content

[FEATURE]: Allow Different Content Types on All Request Methods #73

@CallumLee22

Description

@CallumLee22

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions