Use Endpoint class for resource server requests