我正在尝试在API Blueprint中记录查询参数,但我不完全确定我是否已正确完成.资源如下所示:
DELETE http://baasar.apiary-mock.com/user/{appId}/{userId}
Run Code Online (Sandbox Code Playgroud)
该请求将停用用户,而以下将删除用户对象:
DELETE http://baasar.apiary-mock.com/user/{appId}/{userId}?force=true
Run Code Online (Sandbox Code Playgroud)
这是我对此的蓝图降价:
## User [/user/{appId}/{userId}]
Handle user objects
+ Parameters
+ appId (required, number, `1`) ... Application ID (`appId`)
+ userId (required, number, `1`) ... Numeric `userId` of the User object to manage
### Remove an User [DELETE]
+ Parameters
+ force (optional, boolean, `false`) ... Set to `true` to remove instead of deactivate
+ Response 204
Run Code Online (Sandbox Code Playgroud)
但是,当使用Apiary渲染时,我只force在参数列表中看到,但它现在显示在示例URL中.这只是我误解了GUI或者应该以另一种方式记录查询参数吗?