javascript - Why can't Swagger get the value when using Post to submit in="body"?
漂亮男人
漂亮男人 2017-06-24 09:42:34
0
2
1255

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".

漂亮男人
漂亮男人

reply all(2)
刘奇

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...

大家讲道理
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!