This commit adds a new endpoint so that a user can send multiple custom fields in one request.
In order to keep backward compatibility I have added a new route /custom and preserved the /custom/field_name route that can be used to edit a single field.
This PR has 3 commits, first one implement the new API, second refactor the common code between the 2 custom field API and the third commit remove a duplicated call to pagure.lib.add_metadata_update_notif
This commit adds a new endpoint so that a user can send multiple custom fields in one request.
In order to keep backward compatibility I have added a new route /custom and preserved the /custom/field_name route that can be used to edit a single field.
This PR has 3 commits, first one implement the new API, second refactor the common code between the 2 custom field API and the third commit remove a duplicated call to pagure.lib.add_metadata_update_notif
This partially fixes #2057