Hi all,
it is quite clear what the advantages of using nice urls in you web site are.
Let me clarify what i am asking by using an example. To note that the entities here cannot be uniquelly identified by name.
Say the user wants to see all the radio stations registered at your site that are available at a specific location. This is done by accessing the url: http://example.com/radios/1234/radio-paris-eiffel-tower
- 1234 - in this case is the unique id of a location
- radio-paris-eiffel-tower - is just additional info to make the url nicer.
If the users wants to see all locations where a specific radio station is accessibile they can use: http://example.com/locations/abcd/radio-xyz
- abcd - here identifies the radio
Now the question: what would be a nice url for accesing the radio station details of a specific radio station at a specific location (like name, frequency, ...)?
http://example.com/radio/1234/radio-paris-eiffel-tower/abcd/radio-xyz or http://example.com/radio/details?radioid=1234&locationid=abcd/radio-xyz-at-paris-eiffel-tower
Do you have any suggestions and could you please also give me an example on how to code the route for your suggested url?
Thank you very much.
ps: actually thinking about the urls above, instead of http://example.com/radios/1234/radio-paris-eiffel-tower
nicer it would be http://example.com/1234/radio-paris-eiffel-tower/radios/
wdyt?
how could i map such a route to RadiosController.ListByLocation(int locationId)?