Changed rest apis method