http api sample