woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
321 stars 113 forks source link

[Media] Use `wp/v2` endpoint for loading WP media library and updating Product ID #14550

Open selanthiraiyan opened 4 hours ago

selanthiraiyan commented 4 hours ago

Problem

We currently use rest/v1.1 endpoints for the following two remote calls. This doesn't work when XMLRPC is disabled on the site.

  1. To load media from WP media library
  2. To link the product with the media ID

Related issue - https://github.com/woocommerce/woocommerce-ios/issues/14232

Proposed solution

Start using wp/v2 endpoint to load images from media library. This endpoint works even when XMLRPC is disabled.

Internal - p1732776777296839/1732776754.769469-slack-C03L1NF1EA3

dangermattic commented 4 hours ago

Thanks for reporting! 👍