Api rest service and policy check.