I have this academic competition.. where a same Jersey service will
support the competitions of several JUGs... The database contains the
same domain model for all JUGs (same competition model), but in my GUI
an user will be interested only in his specific group informations..
so:
all groups will have access to URLs like:
/user/0/88 << this returns all users from record 0 to 88 (pagination)
/grades/7 << this returns all grades for the homerowk ID=7
so, of course the above URLs are relative to a specific group.. the
user of a JUG-A don't want to see the grades of the homework 7 of the
JUG-B, etc....
So, how to split ?
option #1: using a path in the URL:
/jug-a/user/0/88
/jug-a/grades/7
option #2: using parameters:
/user/0/88?group=juga
/grades/7?group=juga
option #3: using HTTP headers
option #4: ??? waiting your best suggestion here :)
thanks in advance for any help.......