Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Changed URI structure for Shopware 6.4.x support #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteCategory extends AbstractAction
{
private const URI = '/api/v2/category/%s';
private const URI = '/api/category/%s';

private string $categoryId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetCategory extends AbstractAction
{
private const URI = '/api/v2/category/%s';
private const URI = '/api/category/%s';

private string $categoryId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetCategoryList extends AbstractAction
{
private const URI = '/api/v2/category?%s';
private const URI = '/api/category?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchCategoryAction extends AbstractAction
{
private const URI = '/api/v2/category/';
private const URI = '/api/category/';

private Shopware6Category $category;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostCategoryAction extends AbstractAction
{
private const URI = '/api/v2/category?%s';
private const URI = '/api/category?%s';

private Shopware6Category $category;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetCurrencyList extends AbstractAction
{
private const URI = '/api/v2/currency?%s';
private const URI = '/api/currency?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class PostCurrencyCreate extends AbstractAction
{
private const URI = '/api/v2/currency';
private const URI = '/api/currency';

private string $iso;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetCustomField extends AbstractAction
{
private const URI = '/api/v2/custom-field/%s';
private const URI = '/api/custom-field/%s';

private string $customFieldId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class GetCustomFieldList extends AbstractAction
{
private const URI = '/api/v2/custom-field?%s';
private const URI = '/api/custom-field?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class GetCustomFieldSetList extends AbstractAction
{
private const URI = '/api/v2/custom-field-set?%s';
private const URI = '/api/custom-field-set?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchCustomFieldAction extends AbstractAction
{
private const URI = '/api/v2/custom-field/';
private const URI = '/api/custom-field/';

private AbstractShopware6CustomField $customField;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class PostCustomFieldAction extends AbstractAction
{
private const URI = '/api/v2/custom-field?%s';
private const URI = '/api/custom-field?%s';

private AbstractShopware6CustomField $customField;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class PostCustomFieldSetAction extends AbstractAction
{
private const URI = '/api/v2/custom-field-set?%s';
private const URI = '/api/custom-field-set?%s';

private AbstractShopware6CustomFieldSet $customFieldSet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetLanguageList extends AbstractAction
{
private const URI = '/api/v2/language?%s';
private const URI = '/api/language?%s';

private Shopware6QueryBuilder $query;

Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Connector/Action/Language/GetLocate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetLocate extends AbstractAction
{
private const URI = '/api/v2/locale/%s';
private const URI = '/api/locale/%s';

private string $locateId;

Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Connector/Action/Media/DeleteMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteMedia extends AbstractAction
{
private const URI = '/api/v2/media/%s';
private const URI = '/api/media/%s';

private string $mediaId;

Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Connector/Action/Media/GetMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetMedia extends AbstractAction
{
private const URI = '/api/v2/media/%s';
private const URI = '/api/media/%s';

private string $mediaId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetMediaDefaultFolderList extends AbstractAction
{
private const URI = '/api/v2/media-default-folder?%s';
private const URI = '/api/media-default-folder?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostCreateMediaAction extends AbstractAction
{
private const URI = '/api/v2/media?%s';
private const URI = '/api/media?%s';

private string $mediaFolderId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class PostMediaFolder extends AbstractAction
{
private const URI = '/api/v2/media-folder?%s';
private const URI = '/api/media-folder?%s';
private string $mediaFolder;

private bool $response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostUploadFile extends AbstractAction
{
private const URI = '/api/v2/_action/media/%s/upload?%s';
private const URI = '/api/_action/media/%s/upload?%s';

private string $multimediaId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteProductCategory extends AbstractAction
{
private const URI = '/api/v2/product/%s/categories/%s';
private const URI = '/api/product/%s/categories/%s';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetProductCategory extends AbstractAction
{
private const URI = '/api/v2/product/%s/categories';
private const URI = '/api/product/%s/categories';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetConfiguratorSettings extends AbstractAction
{
private const URI = '/api/v2/product/%s/configurator-settings';
private const URI = '/api/product/%s/configurator-settings';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class GetProductList extends AbstractAction
{
private const URI = '/api/v2/product?%s';
private const URI = '/api/product?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteProductMedia extends AbstractAction
{
private const URI = '/api/v2/product/%s/media/%s';
private const URI = '/api/product/%s/media/%s';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetProductMedia extends AbstractAction
{
private const URI = '/api/v2/product/%s/media';
private const URI = '/api/product/%s/media';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchProductAction extends AbstractAction
{
private const URI = '/api/v2/product/';
private const URI = '/api/product/';

private Shopware6Product $product;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostProductAction extends AbstractAction
{
private const URI = '/api/v2/product?%s';
private const URI = '/api/product?%s';

private Shopware6Product $product;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteProperties extends AbstractAction
{
private const URI = '/api/v2/product/%s/properties/%s';
private const URI = '/api/product/%s/properties/%s';

private string $productId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteAssignedProductsAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling/%s/assigned-products/%s';
private const URI = '/api/product-cross-selling/%s/assigned-products/%s';

private string $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DeleteCrossSellingAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling/%s';
private const URI = '/api/product-cross-selling/%s';

private string $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetAssignedProductsAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling/%s/assigned-products';
private const URI = '/api/product-cross-selling/%s/assigned-products';

private string $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetCrossSellingAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling/%s';
private const URI = '/api/product-cross-selling/%s';

private string $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchCrossSellingAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling/%s';
private const URI = '/api/product-cross-selling/%s';

private AbstractProductCrossSelling $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class PostCrossSellingAction extends AbstractAction
{
private const URI = '/api/v2/product-cross-selling?%s';
private const URI = '/api/product-cross-selling?%s';

private AbstractProductCrossSelling $productCrossSelling;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetPropertyGroup extends AbstractAction
{
private const URI = '/api/v2/property-group/%s';
private const URI = '/api/property-group/%s';

private string $propertyGroupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class GetPropertyGroupList extends AbstractAction
{
private const URI = '/api/v2/property-group?%s';
private const URI = '/api/property-group?%s';

private Shopware6QueryBuilder $query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetPropertyGroupOptions extends AbstractAction
{
private const URI = '/api/v2/property-group/%s/options/%s';
private const URI = '/api/property-group/%s/options/%s';

private string $propertyGroupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class GetPropertyGroupOptionsList extends AbstractAction
{
private const URI = '/api/v2/property-group/%s/options?%s';
private const URI = '/api/property-group/%s/options?%s';

private string $propertyGroupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchPropertyGroupAction extends AbstractAction
{
private const URI = '/api/v2/property-group/';
private const URI = '/api/property-group/';

private Shopware6PropertyGroup $propertyGroup;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PatchPropertyGroupOptionAction extends AbstractAction
{
private const URI = '/api/v2/property-group/%s/options/%s';
private const URI = '/api/property-group/%s/options/%s';

private string $propertyGroupId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostPropertyGroupAction extends AbstractAction
{
private const URI = '/api/v2/property-group?%s';
private const URI = '/api/property-group?%s';

private Shopware6PropertyGroup $propertyGroup;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class PostPropertyGroupOptionsAction extends AbstractAction
{
private const URI = '/api/v2/property-group/%s/options?%s';
private const URI = '/api/property-group/%s/options?%s';

private string $propertyGroupId;

Expand Down
Loading