Skip to content

Commit

Permalink
$batch -> batch
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Aug 29, 2024
1 parent d834e79 commit 880ad67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vocabularies/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@
"$Kind": "ComplexType",
"@Common.Experimental": true,
"@Core.Description": "Establishes a correspondence between a value or entity in a parameter and in the return type",
"@Core.LongDescription": "Given a sales quotation with items for coffee, sugar and paper,\nthe following $batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)\ninvokes an action to create a sales order for sugar and paper\nand adds a 10% discount for the sugar.\n```json\n{\n \"requests\": [\n {\n \"id\": \"1\",\n \"method\": \"post\",\n \"url\": \"/service/SalesQuotation(68)/self.CreateSalesOrder\",\n \"body\": {\n \"items\": [\n {\"product\": \"Sugar\", \"@Core.ContentID\": \"I1\"},\n {\"product\": \"Paper\"}\n ]\n }\n },\n {\n \"id\": \"2\",\n \"dependsOn\": [ \"1\" ],\n \"method\": \"post\",\n \"url\": \"$I1/Discounts\",\n \"body\": {\n \"percent\": 10\n }\n }\n ]\n}\n```\nIn the response to the action invocation the sales order item for the sugar is annotated\nwith `\"@Core.ContentID\": \"I1\"`. The subsequent POST request can reference this item without knowing its key.\n\nExactly one of `ParameterValue` and `ParameterEntity` and\nexactly one of `ReturnedValue` and `ReturnedEntity` and must be given.",
"@Core.LongDescription": "Given a sales quotation with items for coffee, sugar and paper,\nthe following batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)\ninvokes an action to create a sales order for sugar and paper\nand adds a 10% discount for the sugar.\n```json\n{\n \"requests\": [\n {\n \"id\": \"1\",\n \"method\": \"post\",\n \"url\": \"/service/SalesQuotation(68)/self.CreateSalesOrder\",\n \"body\": {\n \"items\": [\n {\"product\": \"Sugar\", \"@Core.ContentID\": \"I1\"},\n {\"product\": \"Paper\"}\n ]\n }\n },\n {\n \"id\": \"2\",\n \"dependsOn\": [ \"1\" ],\n \"method\": \"post\",\n \"url\": \"$I1/Discounts\",\n \"body\": {\n \"percent\": 10\n }\n }\n ]\n}\n```\nIn the response to the action invocation the sales order item for the sugar is annotated\nwith `\"@Core.ContentID\": \"I1\"`. The subsequent POST request can reference this item without knowing its key.\n\nExactly one of `ParameterValue` and `ParameterEntity` and\nexactly one of `ReturnedValue` and `ReturnedEntity` and must be given.",
"ParameterValue": {
"$Type": "Edm.PropertyPath",
"$Nullable": true,
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/Common.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ User ID
Establishes a correspondence between a value or entity in a parameter and in the return type

Given a sales quotation with items for coffee, sugar and paper,
the following $batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)
the following batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)
invokes an action to create a sales order for sugar and paper
and adds a 10% discount for the sugar.
```json
Expand Down
2 changes: 1 addition & 1 deletion vocabularies/Common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ If the request succeeds the response will contain a JSON body of `Content-Type:
<Annotation Term="Core.Description" String="Establishes a correspondence between a value or entity in a parameter and in the return type" />
<Annotation Term="Core.LongDescription">
<String>Given a sales quotation with items for coffee, sugar and paper,
the following $batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)
the following batch request to [this service](../examples/Common.CorrespondingContentIDs-sample.xml)
invokes an action to create a sales order for sugar and paper
and adds a 10% discount for the sugar.
```json
Expand Down

0 comments on commit 880ad67

Please sign in to comment.