try define api using thrift