updated rest API with new deployment API