Inserting new data, such as products, one-by-one can be a daunting and tedious task. Automating it, for example through a prepared file, can save a lot of time and work.
Suggested resources
GET /files/{context} would download a file with the same contents that GET /data/{context} would return as JSON.
POST /files/{context} would insert new data that is parsed from the input file and does not collide with existences.
PUT /files/{context} would update internal data that is matched to existences from the input file.
Additional considerations
- Should support three file formats; two for automation and a third one for usage of most end-users
csv files
txt files with length-delimited fields
xlsx (2007-365 Excel) files
- Should support the same query parameters as
GET,POST,PUT /data/* counterparts; pagination, filtering, etcetera
Inserting new data, such as products, one-by-one can be a daunting and tedious task. Automating it, for example through a prepared file, can save a lot of time and work.
Suggested resources
GET /files/{context}would download a file with the same contents thatGET /data/{context}would return as JSON.POST /files/{context}would insert new data that is parsed from the input file and does not collide with existences.PUT /files/{context}would update internal data that is matched to existences from the input file.Additional considerations
csvfilestxtfiles with length-delimited fieldsxlsx(2007-365 Excel) filesGET,POST,PUT /data/*counterparts; pagination, filtering, etcetera