After implementing REST repository for a while, I began to populate some search methods under the interface.
However, the method findById did not show up in the /search catalogue, returning 404 when being invoked like other methods.
While I could not find the actual reason, I later find this method unnecessary, as it is essentially the same to the default path /user/{id}, that is generated by default.
Naming custom method `findUserById` however, worked as expected.
沒有留言:
張貼留言