【发布时间】:2017-12-04 13:31:46
【问题描述】:
我的 RAML 文件有问题。
当我在 GET 中调用此 URL 时:
mysite.com/test/nextversion?msn=xxx&ata=xx&title=xxx
它告诉我参数没有定义:
"Request parameter msn not defined in RAML\nRequest parameter title not defined in RAML\nRequest parameter ata not defined in RAML"
这是我的 RAML 定义:
/test/nextversion:
get:
queryParameters:
msn:
description: msn id
type: string
required: false
title:
description: ata title
type: string
required: false
ata:
description: ata id
type: string
required: false
responses:
200:
description: OK
body:
application/json:
type: string
550:
body:
application/json:
type: DefaultResponse
/test/{ipid}/nextversion:
uriParameters:
ipid:
type: string
get:
responses:
200:
description: OK
body:
application/json:
type: string
550:
body:
application/json:
type: DefaultResponse
现在我注意到,当我删除第一个定义时,它总是进入第二个原因,它给了我同样的错误,即使它应该告诉我它找不到正确的定义。 当我删除第二个定义时,它工作正常,但我有另一个端点取决于那个。
谁能向我解释为什么这在我的 RAML 文件中不起作用?
【问题讨论】:
标签: java hibernate url yaml raml