Please review carefully this pullrequest, since it introduces some limited but important changes.
The goal is to be able to implement sluggable webservices with RESThub.
I provide some unit tests in order to show how to use it.
The 2 mains changes I had to do :
A slug can be updated, so I had to remove the resourceId equality in update() method of controlers. We made here a specific assumption not true in use case with fields other than id as identifier
Since I removed this check, getResourceById() was not used anymore so, I removed it.
Please suggest better solution if you are not OK with these changes.
Please review carefully this pullrequest, since it introduces some limited but important changes. The goal is to be able to implement sluggable webservices with RESThub.
I provide some unit tests in order to show how to use it.
The 2 mains changes I had to do :
Please suggest better solution if you are not OK with these changes.