【发布时间】:2020-01-31 03:40:01
【问题描述】:
我使用 API Manager 3.0.0 版。
在Resources的Publisher页面中,当类型为BODY时,我需要添加两个或多个参数,方法HTTP是POST,类似于,但参数为Body时只允许一个。
是否可以添加多个参数 BODY?以及如何?
编辑:
在 BODY 中可能有两个参数,在 API Publisher-> API Definition -> Edit 中使用此表单,编辑您需要的服务,类似于:
/v1/nipCliente:
post:
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: "object"
properties:
id_usuario:
type: "string"
password:
type: "string"
nip:
type: "string"
required: false
responses:
200:
description: "ok"
security:
-
default: []
x-auth-type: "None"
x-throttling-tier: "Unlimited"
在同一页面中看起来:
【问题讨论】: