0

Why does "POST /rest/V1/order/{orderId}/ship" not work in Magento 2.1.1 CE?

Returns error : "Request does not match any route error" in Ship Method.

1 Answer 1

2

what are you searching exactly?

the webapi.xml declares the service layer interface and method here

https://github.com/magento/magento2/blob/2.1/app/code/Magento/Sales/etc/webapi.xml#L251

the interface is defined here:

https://github.com/magento/magento2/blob/2.1/app/code/Magento/Sales/Api/ShipOrderInterface.php#L28

for the interface, the class preference is declared here:

https://github.com/magento/magento2/blob/2.1/app/code/Magento/Sales/etc/di.xml#L73

and the class implements the service method here:

https://github.com/magento/magento2/blob/2.1/app/code/Magento/Sales/Model/ShipOrder.php#L139

so, posting to the url /V1/order/:orderId/ship should invoke the ececute method int the Magento\Sales\Model\ShipOrder Class

2
  • Thanks for reply ! It has now become clearer how !!!
    – Matt Silva
    Jan 23, 2017 at 16:02
  • Thanks and forgive me , but version is 2.1.1 not 2.1.3, i'm wrong in question.
    – Matt Silva
    Feb 3, 2017 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.