pickware / scs-commander

A CLI tool for managing plugins in the Shopware Community Store.
MIT License
13 stars 2 forks source link

404 error responses on some Shopware API requests #61

Closed hanneswernery closed 4 months ago

hanneswernery commented 4 months ago

In our most recent plugin upload:

  config: {
    url: 'plugins/{PLUGIN_ID}/binaries',
...
  response: {
    status: 404,
    statusText: 'Not Found',
...
    data: { success: false, code: 'Exception-0' }

I checked the requests when uploading the plugin manually. Seems like some of the routes now have a "producers" part in it.

Manual upload:

POST https://api.shopware.com/producers/{PRODUCER_ID}/plugins/{PLUGIN_ID}/binaries/validate
POST https://api.shopware.com/producers/{PRODUCER_ID}/plugins/{PLUGIN_ID}/binaries
POST https://api.shopware.com/producers/{PRODUCER_ID}/plugins/{PLUGIN_ID}/binaries/${BINARY_ID}/file
 GET https://api.shopware.com/plugins/{PLUGIN_ID}
POST https://api.shopware.com/plugins/{PLUGIN_ID}/reviews