REST api to pop and push notes