add emptyParent flag passing to custom delete, get and put methods

To distinct whether the url was /api/controller/customMethod/id or /api/controller/id/customMethod in custom methods

Maybe not the best solution. Alternative solution of adding a new method renders the extension cumbersome and brings in complication. Maybe indexing the values in the array is better.