【问题标题】:How to send YML as request body in POSTMAN如何在 POSTMAN 中将 YML 作为请求正文发送
【发布时间】:2021-07-07 13:23:47
【问题描述】:

我有一个 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}

现在如何使用 POSTMAN 发送 POST 请求... 我需要发送 POST 请求,但在 POSTMAN 中我无法将 requestbody 类型设置为 x-yaml。?

【问题讨论】:

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

标签: post postman http-post rasa


【解决方案1】:

https://www.getpostman.com/collections/43deac65a6de60ac46b3

一个示例集合只需单击导入> 使用邮递员中的链接并粘贴它

所以你要做的就是将正文设置为文本,将内容类型设置为 application/x-yaml

YAML media type?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-21
    • 2018-03-08
    • 1970-01-01
    • 2018-01-03
    • 1970-01-01
    • 2020-05-31
    • 2016-03-25
    • 1970-01-01
    相关资源
    最近更新 更多