bind rest-api