I am looking to create a web service from an existing API. The existing API is from a separate Windows program that allows the calculation of mileages between 2 more more locations. The API is in C#. There are also different types of calculations (Shortest Distance, Lowest-Cost, etc).
I am confused on how to create a RESTFUL web service that will allow multiple locations. Example in RESTFUL API tutorials show for an example api/books/1/To Kill A Mockingbird/ would get the record for a book. But how would this be for multiple locations? Would it be api/sd/Kansas City,MO/Chicago,IL/Miluwake,WI? How would it know if I'm looking to get the calculations of 2 vs. 10 locations? Could I program it to have 10 locations entered in the URL?