Merge resource with options in endpoint (allows to set headers in resource).