adapter/rest: allow the endpoint to also return the request method