Changed api method definition format