【发布时间】:2016-10-04 19:26:53
【问题描述】:
# GET verb version of the "GetClientsForGadget" method from the original ASMX Service
/clients/ProspectClient/roleandcstbased/{OrgNmFilter}/{SortNm}?{UserName}:
get:
tags:
- Client
summary: Merging of GetClientsforGadget and GetClientsForUser
operationId: ClientsForGadgetGET
parameters:
- name: OrgNmFilter
in: path
description: Organization Name Filter
required: true
type: string
- name: SortNm
in: path
description: Sort Field
required: true
type: string
- name: UserName
in: query
description: User's Identity
required: false
type: string
responses:
200:
description: Output results for GetClientsForGadget endpoint
schema:
$ref: '#/definitions/ClientOutput'
Swagger 给我这个查询参数的无效参数定义。如果我删除路径和参数定义中对用户名的所有引用,则没有问题。
根据Swagger Specification,我相信我使用的查询参数是正确的,但不知何故不是。
【问题讨论】:
标签: swagger