Sunday, 25 August 2013

REST with Spring Controller issue

REST with Spring Controller issue

I've my rest uri's as below
/leagues - Lists all the leagues organized so far
/leagues/{leagueName} - Details of the give leagueName
/leagues/levels/ - Lists all the levels of a given league (For e.g.
Playoffs, QF, SF etc)
/leagues/levels/{levelName} - Details of the given levelName
The problem I am having is that the controller method for the (2)
/leagues/{leagueName} is being invoked when I try (2) /leagues/levels/.
Need help on how to fix this.

No comments:

Post a Comment