Chemical-Curation / chemcurator_django

Backend services for chemical curation
https://api.chemreg.epa.gov
MIT License
1 stars 0 forks source link

Batch post records: json #240

Open cmgrulke opened 4 years ago

cmgrulke commented 4 years ago

As a user I want be able to post multiple records with their record identifier child entities in a single request So that If I have a list of hundreds of records to register, I don't have to make hundreds of requests

POST https://api.chemreg.epa.gov/TBD

Acceptance Criteria: A set records can be posted to the record endpoint using json that is closely aligned with the json needs to submit a single record resource. The new records will all need to be mapped according to issue #237

michael-barbour commented 3 years ago

Worth reading jsonapi's extention to handle "bulk" operations. https://jsonapi.org/ext/atomic/

I don't love the implementation, but this has been a topic of conversation on the jsonapi boards. There is also no way DRF:JA but we could probably add a wrapper to handle these requests. The functionality/design it's basically in our court.

jtumkur commented 3 years ago

Discussion :