Post 如何在邮递员中发送YML作为请求主体

Post 如何在邮递员中发送YML作为请求主体,post,postman,http-post,rasa,Post,Postman,Http Post,Rasa,我有一个YML文件: {language: en, pipeline: null, policies: null} version: '2.0' intents: [greet, goodbye, affirm, deny, mood_great, mood_unhappy, bot_challenge] responses: utter_greet: - {text: 'Hey! How are you?'} utter_cheer_up: - {text: 'Here is

我有一个YML文件:

{language: en, pipeline: null, policies: null}

version: '2.0'
intents: [greet, goodbye, affirm, deny, mood_great, mood_unhappy, bot_challenge]
responses:
  utter_greet:
  - {text: 'Hey! How are you?'}
  utter_cheer_up:
  - {text: 'Here is something to cheer you up:', image: 'https://i.imgur.com/nGF1K8f.jpg'}
  utter_did_that_help:
  - {text: 'Did that help you?'}
  utter_happy:
  - {text: 'Great, carry on!'}
  utter_goodbye:
  - {text: Bye}
  utter_iamabot:
  - {text: 'I am a bot, powered by Rasa.'}
session_config: {session_expiration_time: 60, carry_over_slots_to_new_session: true}
现在如何使用邮递员发送POST请求。。。 我需要发送一个POST请求,但在POSTMAN中,我无法将requestbody类型设置为x-yaml。?

示例集合只需在postman中单击导入>使用链接并粘贴即可

所以,您必须在中将body设置为text,将content type设置为application/x-yaml


Postman允许您将原始文本作为正文发送。。只需选择“原始”选项,然后选择“文本”。这应该行得通。如果转到标题,则显示隐藏的标题。并更改内容类型或任何其他字段。