OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (ODATA-765) Example 77 (invoking an action): show complex parameters


     [ https://issues.oasis-open.org/browse/ODATA-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Zurmuehl updated ODATA-765:
----------------------------------

    Proposal: 
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

  was:
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/55613/odata-v4.0-wd08-part1-protocol-2015-05-07.docx


> Example 77 (invoking an action): show complex parameters
> --------------------------------------------------------
>
>                 Key: ODATA-765
>                 URL: https://issues.oasis-open.org/browse/ODATA-765
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Protocol
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Applied]
>            Reporter: Ralf Handl
>             Fix For: V4.0_ERRATA03
>
>
> Change example to use a more complicated parameter structure, e.g. an array of objects with product id and quantity for that product



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]