QuestionQ4
APIs and ServicesAn Adobe Commerce developer has added a new API method to search for and retrieve a list of Posts for a custom Blog feature.
This is the module’s etc/webapi.xml file:

The new code has been deployed to production, and the merchant is using https://merchant.domain.com/swagger to review the new endpoint, but it is not displayed in Swagger.
What could explain this?
- A The webapi.xml file should be moved into the etc/webapi_rest/webapi.xml file.
- B Since the new endpoint is not anonymous, the merchant needs to enter a valid integration token in swagger in order to see the new method.
- C The @return annotation is missing in the MyVendor\Blog\Api\PostRepositoryInterface class.
Community Discussion