How do you identify which REST endpoints are supported by the module?

A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
A. REST endpoints are declared in etc/webapi_rest/di.xml
B. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
C. REST endpoints are declared in etc/rest.xml
D. REST endpoints are declared in etc/webapi.xml

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “How do you identify which REST endpoints are supported by the module?

  1. Answer:- D

    To configure a web API, developers define some of the elements of each API call in the /vendor///etc/webapi.xml file, where is your vendor name (for example, magento) and is your module name (which exactly matches its definition in composer.json). For example, the web API for the Customer service is defined in the /vendor/magento/module-customer/etc/webapi.xml configuration file. Service data interfaces and builders define the required and optional parameters and the return values for the API calls.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.