想要在NEST里根据id查询
GET /employee/employee/1
可使用Get方法
public IGetResponse<employee> GetDoc() { var response = client.Get<employee>("一狮"); Console.WriteLine(JsonConvert.SerializeObject(response)); return response; }
fidler
想要在NEST里根据id查询
GET /employee/employee/1
可使用Get方法
public IGetResponse<employee> GetDoc() { var response = client.Get<employee>("一狮"); Console.WriteLine(JsonConvert.SerializeObject(response)); return response; }
fidler