There should be a possibility to assign/unassign tags to Package record. Respective POST/PUT methods have to be extended to support a list of currently associated tags. DELETE method has to remove all associated tags for the record.
Affected API methods:
- POST /eholdings/packages
- PUT /eholdings/packages/<packageId>
- DELETE /eholdings/packages/<packageId>
The content of list has to completely replace tags stored in the module for the package. An empty list passed in the request means that no tags should be associated with the record. So if there were some tags previously present then they should be removed.
Tags should be placed inside record's attributes as a separate object with name "tags":
Tag object schema is common for all records and can be found in /raml-util/schemas/tags.schema