How do you map a Url with two ids:
/orders/$id1/orderlines/$id2
The id2 is optional
/orders/$id1/orderlines GET -> all orderlines for order id1 /orders/$id1/orderlines/$id2 GET -> show orderline id2 within order id1
The methods are to be mapped to OrderLineController
It is pretty easy with Spring MVC @RequestMapping and @PathVariable.
Grails 3 does not allow @RequestMapping (there are are tricks to make it work - but I don't want to go that route - needlessly complex).
Appreciate the help. I did quite a bit of googling.
You can use UrlMappings:
UrlMappings.groovy
OrderLineController.groovy