Open dropsonic opened 1 year ago
While Refit doesn't do this now, you could fake it by writing the "official" Refit method as just passing a string, and add an Extension Method to the interface that JSON formats the elements, joins it on "\n", then calls the string version
Is your feature request related to a problem? Please describe.
Some APIs provide batching via sending multiple records in the JSON Lines format. It is a set of JSON documents with a line break as a separator.
An example of such API is the Typesense API for importing multiple documents:
Having JSON Lines support for the HTTP request body in Refit would be nice.
Describe the solution you'd like Marking a collection parameter in the method will do:
Describe alternatives you've considered Completely replacing the JSON formatter. However, it is quite tedious.
Describe suggestions on how to achieve the feature
Additional context