【发布时间】:2017-06-20 09:02:37
【问题描述】:
我当前的问题是:我需要能够执行以下调用:
https://{Net-IP}:{Net-Port}/rest/devices/{deviceName}.{deviceID}
首先定义一个宿主变量,例如:
主持人:{Net-IP}:{Net-Port} 是不可能的。
其次,如果我尝试在路径中实现路径参数,例如:
/devices/{deviceName}.{deviceID}/measurePoints:
get:
summary: Method returns list of measure points
parameters:
- name: deviceName
in: path
type: string
required: true
description: device Name
- name: deviceID
in: path
type: string
required: true
description: device ID
然后它说路径模板是不允许的。
我需要为 Postman 翻译这类电话,感谢您的帮助!
【问题讨论】:
标签: javascript json rest yaml postman