相关疑难解决方法(0)

为Apiary.io中的每个响应指定描述

是否可以为某些请求的每个响应指定描述?假设,我们有一个请求

### Retrieve resource [GET]

    + Headers

            If-None-Match: "Version1"
Run Code Online (Sandbox Code Playgroud)

还有2个回复

+ Response 200 (application/xml)

    + Headers

            ETag: "Version2"

    + Body

            <Xml>
                <A>
                    <B />
                    <C />
                </A>
            </Xml>

+ Response 304 (application/xml)
Run Code Online (Sandbox Code Playgroud)

我想要的是指定这里的描述(请注意右下方的注释+ Response):

+ Response 200 (application/xml)
In case if the resource hasn't changed

    + Headers

            ETag: "Version2"

    + Body

            <Xml>
                <A>
                    <B />
                    <C />
                </A>
            </Xml>

+ Response 304 (application/xml)
In case if the resource has changed
Run Code Online (Sandbox Code Playgroud)

可能吗?

rest apiary.io apiblueprint

6
推荐指数
1
解决办法
3365
查看次数

标签 统计

apiary.io ×1

apiblueprint ×1

rest ×1