亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在 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 關注
  • 114 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號