Contain sample code for rest api