Rails make It possible to map resources that are logically children of other resources In the URL for example
/magazines/:magazine_id/ads/:id show display a specific ad belonging to a specific magazine
Is it possible to do this In Play?
Play doesn't care if arguments represents some kind of relation or not, it's job for your controller.
Of course it is possible to do that:
GET /some/:parent/:child controllers.Application.getRelated(parent: Long, child: Long)
in controller:
public static Result getRelated(Long parent, Long child) {
return ok(SomeFinder(parent,child));
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With