rest script integrated