泉州网站建设-泉州网站建设,品牌网站建设小蝌蚪2a,月光博客 网站模板,百度一下首页百度一下http://127.0.0.1:9010/v1/communicationRecord/summary 传递的json参数#xff0c;是一个响应式的接口#xff0c;怎么修改这个参数#xff0c;可以响应式的输出。 为了使用curl命令对您的接口进行流式输出测试#xff0c;您需要构造一个curl请求#xff0c;该请求向您的…http://127.0.0.1:9010/v1/communicationRecord/summary 传递的json参数是一个响应式的接口怎么修改这个参数可以响应式的输出。 为了使用curl命令对您的接口进行流式输出测试您需要构造一个curl请求该请求向您的服务发送JSON数据并且能够接收流式响应。假设您的接口能够处理流式响应如text/event-stream以下是构造curl命令的一个示例
curl -X POST http://127.0.0.1:9010/v1/communicationRecord/summary \-H Content-Type: application/json \-H Accept: text/event-stream \-d [{roleType: AGENT, content: 喂你好彭先生对吧}, {roleType: CUSTOMER, content: 对。}, {roleType: AGENT, content: 哎。}, {roleType: AGENT, content: 我是那个调解员。}, {roleType: CUSTOMER, content: 嗯你好。}, {roleType: AGENT, content: 哎你好是这样的就是你那个发到调解群里面的我们这边看到了然后和原告方这边去沟通过。}, {roleType: AGENT, content: 原告方这边现在是没办法给你把这个期限延长呃因为他们第一。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 到29号嘛29号。}, {roleType: AGENT, content: 呃是这个样子的。第一点就是本来这个调解期通常情况下是一个月的时间调解期本来就延长了两周的一个时间。然后第二点是因为原告方这边这个案件的话他们是批量进行申请诉讼的。就25过后25号如果没办法处理的话26号他们会批量申请到这个立案庭进行正式的一个立案处理。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 他没办法就是。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 把某些当事人或者说他们的一个客户进行分开的。}, {roleType: AGENT, content: 处理知道吧}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 所以说我就是建议你这边如果说你是25号呃29号发工资的话建议你这边看能不能先周转一下嘛。然后你发了工资再还给别人。}, {roleType: CUSTOMER, content: 好的好的好的好的。}, {roleType: AGENT, content: 哎好的因为只有这个样子你处理以后你这个这两笔欠款的这个减免才能够享受。}, {roleType: CUSTOMER, content: 好了。}, {roleType: CUSTOMER, content: 好好好。}, {roleType: AGENT, content: 哎好的那法院指派到我们。}, {roleType: CUSTOMER, content: 行我知道了。好。}]此命令的解释如下
-X POST指定请求类型为POST。-H Content-Type: application/json设置HTTP头以指明发送的数据类型为JSON。-H Accept: text/event-stream设置HTTP头以指明期望的响应类型为事件流这取决于您的服务器是否支持。-d后跟要发送的
sunyuhuasunyuhua-HKF-WXX:~/dockercom/es$ curl -X POST http://127.0.0.1:9010/v1/communicationRecord/summary \-H Content-Type: application/json \-H Accept: text/event-stream \-d [{roleType: AGENT, content: 喂你好彭先生对吧}, {roleType: CUSTOMER, content: 对。}, {roleType: AGENT, content: 哎。}, {roleType: AGENT, content: 我是那个调解员。}, {roleType: CUSTOMER, content: 嗯你好。}, {roleType: AGENT, content: 哎你好是这样的就是你那个发到调解群里面的我们这边看到了然后和原告方这边去沟通过。}, {roleType: AGENT, content: 原告方这边现在是没办法给你把这个期限延长呃因为他们第一。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 到29号嘛29号。}, {roleType: AGENT, content: 呃是这个 样子的。第一点就是本来这个调解期通常情况下是一个月的时间调解期本来就延长了两周的一个时间。然后第二点是因为原告方这边这个案件的话他们是批量进行申请诉讼的。就25过后25号如果没办法处理的话26号他们会批量申请 到这个立案庭进行正式的一个立案处理。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 他没办法就是。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 把某些当事人或者说他们的一个客户进行分开的。}, {roleType: AGENT, content: 处理知道吧}, {roleType: CUSTOMER, content: 嗯。}, {roleType: CUSTOMER, content: 嗯。}, {roleType: AGENT, content: 所以说我就是建议你这边如果说你是25号呃29号发工资的话建议你这边看能不能先周转一下嘛。然后你发了工资再还给别人。}, {roleType: CUSTOMER, content: 好的好的好的好的。}, {roleType: AGENT, content: 哎好的因为只有这个样子你处理以后你这个这两笔欠款的这个减免才能够享受。}, {roleType: CUSTOMER, content: 好了。}, {roleType: CUSTOMER, content: 好好好。}, {roleType: AGENT, content: 哎好的那法院指派到我们。}, {roleType: CUSTOMER, content: 行我知道了。好。}]
data:{code:200,message:Success,data:{\content\:\调解\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\员\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\与\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\彭先生进行了沟通\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\了解到彭先生在调解群中提出\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\的问题已经引起注意并且调解员\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\已与原告方进行了交流。原告\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\方表示无法进一步延长调解期限\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\因为按照流程调解期原本是一个\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\月并已额外延长两周而且\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\他们将采取批量诉讼的方式即\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\若在25日后还未达成调解\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\协议将在26日向立案\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\庭提交正式立案申请无法针对\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\个别当事人进行单独处理。\\n\\n鉴于此\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\情况调解员建议彭先生尽量\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\在工资发放预计日期为2\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\5日或29日后\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\进行还款周转。这样做的话彭\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\先生才能享受到这两笔欠款可能\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\的减免优惠。彭先生对此表示\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\理解和同意。整个调解过程是由法院\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\指派给调解员进行的。\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\\,\finishReason\:\null\}}data:{code:200,message:Success,data:{\content\:\\,\finishReason\:\stop\}}sunyuhuasunyuhua-HKF-WXX:~/dockercom/es$