feat/nested resources

Thanks @lextoumbourou