Writing Scripts For Rest Api