Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 0c82920

Browse files
committed
docs: 📝 tweak documentation
1 parent 4bed8cb commit 0c82920

File tree

3 files changed

+206
-8
lines changed

3 files changed

+206
-8
lines changed

.idea/workspace.xml

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,10 @@ Magento::api('orders')->show($orderId);
356356
```
357357

358358
`/V1/orders`
359-
360-
Updates an order specified by the entity id within the $body:
359+
https://magento.redoc.ly/2.4.3-admin/tag/orders#operation/salesOrderRepositoryV1SavePost
360+
Performs persist operations for a specified order.
361361
```php
362-
$body = [
363-
'entity_id' => '', // required
364-
// ... attributes to update
365-
];
366-
Magento::api('orders')->edit($body);
362+
Magento::api('orders')->edit($entity = []);
367363
```
368364

369365

src/Api/Orders.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public function show($orderId)
3434
}
3535

3636
/**
37-
* Edits and saves an order using the specified entity id within the body.
37+
* Performs persist operations for a specified order.
38+
* @see https://magento.redoc.ly/2.4.3-admin/tag/orders/#operation/salesOrderRepositoryV1SavePost
3839
*
3940
* @param array $entity
4041
* @return array

0 commit comments

Comments
 (0)