Batch Operations and data standardization proposalΒ #2
Description
Hi,
Thank you so much for drafting up this API.
As title suggest, I'd love to propose two addional features to this API.
-
Batch Operations. This would be really useful because at least in our use case, we wanted to POST and GET as much as possible. Here's a sample implementation that suited our need, but i think it can be easily adjusted to a more generic one
batch get
batch post this might not be a good example, input to the function should probably be a dictionary/Pydantic model, and then the function will translate that into XML format, but the idea of batch posting is there -
Standardizing Data types. Dictionaries are great, but it will be even better if libraries such as Pydantic can be used. The perks of using it is that it will provide out of the box data validation (like which data are required, which are optional, default fields, data type, etc) and also it will give the developer a very clear idea of what the data looks like. We have actually already created Pydantics models that you can easily use/adapt.
ElinkGetResponseModel
ElinkPostResponseModel
You might want to consider changing the names
Thank you very much! I think this API will help a lot of developers to get their data in quickly.
Best,
Michael Wu