Sorry, we don't support your browser.  Install a modern browser

Need compatible API for WordPress Info and Updates

?

The update API for WordPress is not great. It would help save alot of developing headache if you could improve it by making it more compatible with the WordPress API for accessing information about a plugin/theme.

This would also allow developers to support rollback for the customers should it be required. Saving the customers manual work to login to their account, download the version and upload it to the WordPress setup.

Here is a JSON example that would be better. Left some comments also on areas you have left as ‘null’ currently in the API.

Please take this into consideration.

{
  "name": "CoCart &[#8211](/8211); Decoupling Made Easy for WooCommerce",
  "version": "4.3.4",
  "author": "CoCart Headless, LLC",
  "author_profile": "https://shop.cocartheadless.com",
  "requires": "5.6", // parsed from plugin header inside the zip file?
  "tested": "6.6.1", // parsed from plugin header inside the zip file?
  "requires_php": "7.4", // parsed from plugin header inside the zip file?
  "downloaded": 77114, // Would be a cool stat but not required.
  "last_updated": "2024-08-03 5:53pm GMT",
  "added": "2018-02-26",
  "homepage": "https://cocartapi.com",
  "download_link": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.3.4.zip", // Links to latest version of file.
  "versions": { // Lists all versions that the customer has access too.
    "3.12.0": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.3.12.0.zip",
    "4.0.0": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.0.0.zip",
    "4.0.1": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.0.1.zip",
    "4.0.2": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.0.2.zip",
    "4.1.0": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.1.0.zip",
    "4.1.1": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.1.1.zip",
    "4.2.0": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.2.0.zip",
    "4.2.1": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.2.1.zip",
    "4.2.2": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.2.2.zip",
    "4.3.0": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.3.0.zip",
    "4.3.2": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.3.2.zip",
    "4.3.3": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.3.3.zip",
    "4.3.4": "https://downloads.wordpress.org/plugin/cart-rest-api-for-woocommerce.4.3.4.zip"
  },
  "sections": {
    "description": "Description goes here",
    "changelog": "Parse the changelog from the changelog.txt file inside the zip?"
  }
}
2 years ago