简体   繁体   English

用邮递员测试Drools DRL

[英]Testing Drools DRL with postman

Created a test Drools DRL and using postman to execute it. 创建了一个测试Drools DRL并使用邮递员执行它。 When I send the request I use content-type application/json. 当我发送请求时,我使用内容类型application / json。 The rule execution work as I expected, but the return content-type is application/xml and not content-type application/json. 规则执行符合我的预期,但是返回的内容类型是application / xml,而不是内容类型application / json。 Note: the response is json not xml. 注意:响应是json而不是xml。 What do I need to do to correct it? 我需要做些什么来纠正它?

In postman once you get the response there will be a drop down with type of data. 在邮递员中,一旦获得响应,数据类型就会出现下拉列表。 instead of xml choose json. 而不是xml选择json。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM