usnationalarchives / OPAProd

Tracking enhancements to OPAProd
1 stars 0 forks source link

API error handling for multi-valued inputs #94

Open DominicBM opened 9 years ago

DominicBM commented 9 years ago

It is possible to input many values via the API in a single request. For example, I can tag NAID 12345 with "a,b,c,d" for 4 tags at once. This method currently does not handle errors well, since if "b" fails and the others succeed, "b" fails silently with no error message, and you only get a successful response from the API. We need to improve design so that most of these types of situations return an error without posting any data, allowing the user to retry (unless the only error is a "duplicate" one, since the data is already there...).