search

Home  >  Q&A  >  body text

javascript - Why can't Swagger get the value when using Post to submit in="body"?

Why can’t I get the value when printing the post task_require_content field?

Note: It won’t work with in="body", but it can be obtained with in="formData".

漂亮男人漂亮男人2754 days ago1295

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-06-24 09:44:34

    Since both body and formData need to specify header formatting settings, two different methods cannot be set in the same request.

    Original text
    Body - The payload that's appended to the HTTP request. Since there can only be one payload, there can only be one body parameter. The name of the body parameter has no effect on the parameter itself and is used for documentation purposes only. Since Form parameters are also in the payload, body and form parameters cannot exist together for the same operation.
    https://github.com/OAI/OpenAP...

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-24 09:44:34

    reply
    0
  • Cancelreply