It would also be cool if we could support something like ` /api/customer/{id : [0-9]} ` So we could have the best of both worlds: get path parameter by name and use regex .