3 ms·
Something like depends on the context of the whole application and how you want to organize it. The first way puts the emphasis on the /doctors/mjones/... If yo
by rgoddard 16y ago
Something like depends on the context of the whole application and how you want to organize it. The first way puts the emphasis on the /doctors/mjones/...
If you have other actions related to doctors like /doctors/mjones/contact, this way can provide a more coherent organization. Plus you can extend it to something like /labs/questdiagnostic/mri/slots?
So you can decouple the concept of 'slots' from doctor, allowing you to extend it to other types of appointments without having to alter slots. The parameters are the items that are also the most likely to vary. When making an appointment you will check multiple days, but you are much less likely to check multiple doctors. Plus the days are more temporal in nature while the list of doctors is going to stay the same for longer.