rest api in go