Closed ub0005 closed 2 years ago
I agree with this. This will help us validate the uploaded csv so that the server wouldn't crash much...
@ub0005 We resolved this, right in PR #9 ?
@NISH1001 I could see there is a difference in mandatory fields between bulk upload API and single catalogue item insertion API.
Need to get clarity on what fields would mandatory for both the API's
For single, we assume if the json in the POST request doesn't have the field, we put default values. So, I had to put mandatory fields for some fields that wouldn't have any defaults. For instance, checksum can't have default values, etc.
@NISH1001
For single, we assume if the json in the POST request doesn't have the field, we put default values. So, I had to put mandatory fields for some fields that wouldn't have any defaults. For instance, checksum can't have default values, etc.
I had externalized the mandatory fields for the CSV upload post request to Nish. Going forward we can add the mandatory columns in the configuration. please let me know your comments
@ub0005 Cool...Saw the PR. LOoks good.
Once Identified make needed code changes to fail the API call if mandatory columns or fields are not present in the CSV or JSON request.
Priority: Low
@NISH1001 @smarru @DImuthuUpe