adding REST APIs to mange statements