Closed jcoyne closed 6 years ago
Let’s be extra clear here given recent confusion and a misleading title:
Files should not be deposited via a POST to the ‘/resource’ route. They should be deposited via a POST to ‘/file’ route. This is from sprint 0 discussions.
Updates to files (currently metadata only) are like any resource a PATCH to ‘/resource/{Id}’ route. We started work on update file (binary) but that was held back given team misunderstanding of current work.
On the ‘/file’ POST, a File is a valid deposit resource. But it builds and validated File metadata differently. Currently that build is invalid in master (it does not follow the MAP spec).
This is a change for the ‘/resource’ POST route and how it handles validations, which doesn’t include Files.
@cmh2166 yes, that is correct.
Cool. Wasn’t asking, but clarifying for you and others - again, given confusion and unclear PR title.
Instead they are deposited via a POST to
/v1/file
Per discussion after standup 4/6/18