查询字符串和路径参数的正确格式是什么?

时间:2019-01-18 05:10:49

标签: rest apiblueprint

我正在使用API​​蓝图来模拟一组现实世界的端点,并且在合并路径和查询字符串参数时遇到了麻烦。

现实世界端点的查询字符串参数显示为1st,后跟许多路径参数。我已经厌倦了在https://app.apiary.io中加载它,但是当我这样做时,总是将查询字符串参数移到端点的末尾。我在做什么错了?

FORMAT: 1A

# Milliman-Goals-Engine
Milliman-Goals-Engine is an API that allows consumers to view requests and responses from Milliman.

# Group Projections
Resources related to projections in the API

## Projection [/test/lts/objects{?startsWith}{/audit}{/projections}{/projectionType}]
Retreives projections by scenarioId and projection type

+ Parameters
    + startsWith: `1` (integer) - The scenario id of the projection
    + audit: `audit` (string)
    + projections: `projections` (string)
    + projectionType: `stochastic_request` (string) - The projection type to retrieve for the given scenarioId

### Retreive Scenario Projection [GET]
+ Response 200 (application/json)

        {"message":"Hello World!"}

0 个答案:

没有答案