如何在api-blueprint中创建对象字段?

时间:2019-04-05 13:24:45

标签: java apiblueprint

我正在尝试使用一个对象字段和一个预定义文档记录POST请求。我该怎么做呢?此解决方案会在api-blueprint解析后破坏架构。

BiocInstaller::biocLite()

1 个答案:

答案 0 :(得分:1)

### Create order [POST]

Create a new order

+ Request Post new order (application/json)

    + Attributes (object)
        + customIds (object)
            + id: `12345` (string, optional) - The order custom id
            + system: `Some` (enum[string], optional) - The order custom id's system name
                + Members
                    + `Some1`
                    + `Some2`
                    + `Some3`
        + customerName: `John` (string, required) - The customer's given name
    + Body

            {
                "customerName" : "John", 
                "customIds": [{"system": "some", "id": "123"}] //optional
            }