为了账号安全,请及时绑定邮箱和手机立即绑定

如何在 API 蓝图中创建对象字段?

如何在 API 蓝图中创建对象字段?

繁花如伊 2022-09-22 16:11:48
我正在尝试使用一个对象字段和一个预定义字段来记录POST请求。我该怎么做才能正确做?此解决方案在 api 蓝图解析后中断架构。### Create order [POST]Create a new order+ Request Post new patient (application/json)    + Attributes (object)        ### CustomIds             + system: `['Some1', 'Some2']` (string, optional) - The order custom id's system            + Members                + `Test1`                + `Test2`                + `Test3`        + customerName: `John` (string, required) - The customer's given name        + customIds: `some, 123` (array[CustomIds], optional) - custom ids    + Body            {                "customerName" : "John",                 "customIds": [{"system": "some", "id": "123"}] //optional            }
查看完整描述

1 回答

?
jeck猫

TA贡献1909条经验 获得超7个赞

### 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

            }


查看完整回答
反对 回复 2022-09-22
  • 1 回答
  • 0 关注
  • 69 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信