Allow for multiple switches, so that you could do something like book/:i...

...d/chapter/:chapter and return id123chapter2.book.json in the response.