API: Respect the 'If-Unmodified-Since' for delete endpoints
What does this MR do?
Respect the If-Unmodified-Since
header when deleting a resource via the API. When passing the header and the resource was updated meanwhile, a 412
error is raised.
However, this cannot be implemented for all endpoints because not every resource has an updated_at
field. This includes:
- Branches
- Tags
- Variables
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Edited by username-removed-2900