V1::AssetsController
Assets
index
Get a list of assets of a asset
URL
GET /themes/:theme_id/assetsObjeto resposta
Array<Asset> | The asset assets |
show
Get a assets information
URL
GET /themes/:theme_id/assets/:keyParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the asset |
Objeto resposta
Asset | The requested asset |
update
Create or Update an existing asset
URL
PUT/PATCH /themes/:theme_id/assets/:keyParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
asset | Hash | Asset to create |
asset[key] | String | Key of the asset |
asset[active] | Boolean | Flag that says if this is must be the active asset |
Objeto resposta
Asset | The created asset or a list of errors |
destroy
Destroy asset
URL
DELETE /themes/:theme_id/assets/:keyParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Id of an asset |