wilr / grunt-shopify

Grunt plug-in for publishing Shopify theme assets
BSD 3-Clause "New" or "Revised" License
107 stars 32 forks source link

explanation of hard coded value '/admin/assets.json' #7

Closed coolaj86 closed 11 years ago

coolaj86 commented 11 years ago

I haven't gotten this plugin to work and I don't know what question to ask yet.

That aside, I was just looking at the code and noticed that you've got /admin/assets.json hard-coded but no comments and I'm trying to understand what it's purpose is.

From a RESTful perspective I would expect that I PUT /templates/something.liquid to replace that file and DELETE /templates/something.liquid to destroy it. Yet it seems that you're using query parameters to specify a file?

Can you enlighten me as to what's going on? Possibly point me to the right docs on shopify?

wilr commented 11 years ago

You would think that but no, http://docs.shopify.com/api/asset#update.