REST endpoint.