smaple template coding for api sample