mayflower/shopware-attribute-rest-api

This package is abandoned and no longer maintained. No replacement package was suggested.

Shopware plugin that exposes free text fields (attributes) via REST API

Package info

github.com/mayflower/ShopwareAttributeRestApi

Type:shopware-plugin

pkg:composer/mayflower/shopware-attribute-rest-api

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 2

v1.0.0 2018-09-10 14:46 UTC

Requires

None

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 64e4dae3bd1cb82a03072e8f116412550fea4b02

  • Markus Handschuh <markus.handschuh.woop@mayflower.de>
  • JΓΌrgen Lesny <juergen.lesny.woop@mayflower.de>

This package is auto-updated.

Last update: 2025-01-07 05:50:55 UTC


README

A Shopware plugin that exposes the free text fields (attributes) via REST API.

πŸ‘ Latest Stable Version
πŸ‘ Total Downloads
πŸ‘ Latest Unstable Version
πŸ‘ License

About

This plugin uses the Attribute Crud Service to expose attributes vie REST API.

It's intended to be used for automation of the free text field management.

Setup

Enable API Access as explained in Shopware's REST API Documentation.

Usage

The attributes resource supports the following operations:

Due to the design of Shopware's attribute crud service, it might be possible to update with POST and create with PUT!

GET

table_name is used as ID.

Required Parameters

Return Value

GET (List)

Required Parameters

PUT

  • columnName (required), string,
  • unifiedType, string, defaults to
  • data, array
    • displayInBackend, boolean
    • translatable, boolean
    • core, boolean
    • label, string
    • ...
{
 "columnName": "attr99",
 "unifiedType": "text",
 "data": {
 "displayInBackend": true,
 "translatable": true,
 "core": true,
 "label": "Attribut 99"
 }
}

POST

  • tableName (required), string
  • columnName (required), string,
  • unifiedType, string, defaults to
  • data, array
    • displayInBackend, boolean
    • translatable, boolean
    • core, boolean
    • label, string
    • ...
{
 "tableName": "s_articles_attributes",
 "columnName": "attr99",
 "unifiedType": "text",
 "data": {
 "displayInBackend": true,
 "translatable": true,
 "core": true,
 "label": "Attribut 99"
 }
}

DELETE

Contributing

We use Shopware's Vagrant Setup for development.

After Setup, you map/sync the plugin code into the vagrant box.

One way to do this, is updating the Vagrantfile with something similar like this:

config.vm.synced_folder "../ShopwareAttributeRestApi", "/home/vagrant/www/shopware/custom/plugins/ShopwareAttributeRestApi", create: true, type: "nfs"

We provide a basic Postman Collection for testing.

License

Please see License File for more information.