Between "Rest" and "Soap" API, Which is better then one ?
I have some cases below:
1) Apply for mobile app call web-service.
2) Apply for desktop app call web-service.
3) Apply for web app call web-service.
Of course, In magento 2, I need to know:
1) How to config only use only one "Rest" or "Soap"?
2) How to create new web-service ?


If you use static typed approach than use SOAP. In other cases use Rest.

Currently all services available over Rest and SOAP transport, you cannot configure this.

To create new service you need create service interface and expose it through configuration. See official documentation for it.


Smaller learning curve => REST Fast and Adapt to Programings => REST

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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