2017 © Pedro PelĂĄez
 

library product-api

Extends the Base Spryker Product Api Modulegit initgit init

image

fond-of-spryker/product-api

Extends the Base Spryker Product Api Modulegit initgit init

  • Wednesday, May 23, 2018
  • by daniel-rose
  • Repository
  • 2 Watchers
  • 0 Stars
  • 401 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 74 % Grown

The README.md

Extend ProductApi Module

Build Status PHP from Travis config license, (*1)

ProductApi extends the Base Spryker Product Api Module: * the update and get calls are using the SKU of a product instead of the Abstract Product ID * touch Abstract Product on create, (*2)

Installation

composer require fond-of-spryker/product-api

use rewritten "ProductApiResourcePlugin" class in Pyz ApiDenpendencyProvider, (*3)

use FondOfSpryker\Zed\ProductApi\Communication\Plugin\Api\ProductApiResourcePlugin;

instead of "use Spryker\Zed\Api\ApiDependencyProvider as SprykerApiDependencyProvider;", (*4)

API

GET /api/rest/products/{sku}, (*5)

curl -X GET "http://zed.yourdomain.com/api/rest/products/{sku}" \
     -H 'Content-Type: application/json' \

POST /api/rest/products/, (*6)

curl -X POST "http://zed.yourdomain.com/api/rest/products/" \
     -H 'Content-Type: application/json' \
     -d $'{
           "data": {
             "sku": "sku",
             "id_tax_set": 1,
             "name": "Name",
             "fk_locale": "en_US",
             "attributes" : {
                 "attribute": "value"
             },
             "localized_attributes": [
              {
               "name": "Name",
               "description": "Description",
                "meta_description": "Meta Description",
                "attributes": {

                },
                "locale": {
                     "id_locale": 46,
                     "locale_name": "en_US",
                     "is_active": true
                 }
              }
             ]       
           }
          }'

PATCH /api/rest/products/{sku}, (*7)

curl -X PATCH "http://zed.yourdomain.com/api/rest/products/{sku}" \
     -H 'Content-Type: application/json' \
     -d $'{
          "data": {
            "sku": "sku",
            "id_tax_set": 1,
            "name": "Name",
            "fk_locale": "en_US",
            "attributes" : {
                "attribute": "value"
            },
            "localized_attributes": [
             {
              "name": "Name",
              "description": "Description",
               "meta_description": "Meta Description",
               "attributes": {

               },
               "locale": {
                    "id_locale": 46,
                    "locale_name": "en_US",
                    "is_active": true
                }
             }
            ]       
          }
     }'

The Versions

23/05 2018

dev-master

9999999-dev

Extends the Base Spryker Product Api Modulegit initgit init

  Sources   Download

MIT

The Requires

  • php >=7.1
  • spryker/product-api ^0.1

 

The Development Requires

by Daniel Rose
by Markus Nörenberg
by Pascal Fischer
by Jozsef Geng

23/05 2018

1.0.1

1.0.1.0

Extends the Base Spryker Product Api Modulegit initgit init

  Sources   Download

MIT

The Requires

  • php >=7.1
  • spryker/product-api ^0.1

 

The Development Requires

by Daniel Rose
by Markus Nörenberg
by Pascal Fischer
by Jozsef Geng

23/05 2018

1.0.0

1.0.0.0

Extends the Base Spryker Product Api Modulegit initgit init

  Sources   Download

MIT

The Requires

  • php >=7.1
  • spryker/product-api ^0.1

 

The Development Requires

by Daniel Rose
by Markus Nörenberg
by Pascal Fischer
by Jozsef Geng

17/05 2018

1.0.0-RC1

1.0.0.0-RC1

Extends the Base Spryker Product Api Modulegit initgit init

  Sources   Download

MIT

The Requires

  • php >=7.1
  • spryker/product-api ^0.1

 

The Development Requires

by Daniel Rose
by Markus Nörenberg
by Pascal Fischer
by Jozsef Geng