I am currently the supporter of a web service which has several resources supporting CRUD operations. I discovered that for some resources, a few of these operations (but not all four at the same time) are unused by the consumers.
Which of the following should be preferred?
- Remove the unused endpoints because unused code is causing maintenance costs and YAGNI.
- Leave the API as it is, because it is more important to have the full set of operations (GET, PUT, POST, DELETE) in place which makes dealing with the resource more pleasant, and if it is only for some manual testing.