想要在NEST里根据id查询

GET /employee/employee/1

  

可使用Get方法

        public IGetResponse<employee> GetDoc()
        {
            var response = client.Get<employee>("一狮");
            Console.WriteLine(JsonConvert.SerializeObject(response));
            return response;
        }

  

fidler

 

posted on 2019-09-18 11:01  chester·chen  阅读(517)  评论(0编辑  收藏  举报