Example 77 (invoking an action): show complex parameters

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • V4.0_ERRATA03
    • Affects Version/s: V4.0_ERRATA02
    • Component/s: Protocol
    • None
    • Environment:

      [Applied]

    • Hide

      POST http://host/service/Customers('ALFKI')/SampleEntities.CreateOrder

      {
      "items":[

      {"product":4001, "quantity":2}

      ,

      {"product":7062, "quantity":1}

      ],
      "discountCode": "BLACKFRIDAY"
      }

      Also modify description of example appropriately:
      Example 77: invoke the SampleEntities.CreateOrder action using /Customers('ALFKI') as the customer (or binding parameter). The values for the items and and discountCode parameters are passed in the body of the request. The items parameter value is an array of complex type instances, the discountCode parameter value is a string.

      Applied:
      https://www.oasis-open.org/committees/download.php/55616/odata-v4.0-wd08-part1-protocol-2015-05-07.docx

      Show
      POST http://host/service/Customers('ALFKI')/SampleEntities.CreateOrder { "items":[ {"product":4001, "quantity":2} , {"product":7062, "quantity":1} ], "discountCode": "BLACKFRIDAY" } Also modify description of example appropriately: Example 77: invoke the SampleEntities.CreateOrder action using /Customers('ALFKI') as the customer (or binding parameter). The values for the items and and discountCode parameters are passed in the body of the request. The items parameter value is an array of complex type instances, the discountCode parameter value is a string. Applied: https://www.oasis-open.org/committees/download.php/55616/odata-v4.0-wd08-part1-protocol-2015-05-07.docx

      Change example to use a more complicated parameter structure, e.g. an array of objects with product id and quantity for that product

            Assignee:
            handl
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: