Demo code for API management