Skip to content

Commit

Permalink
Merge pull request #7 from ewarehousing-solutions/EWA-839
Browse files Browse the repository at this point in the history
Fixed patch endpoints to end with a / and one get request
  • Loading branch information
Fichtme authored Mar 22, 2024
2 parents aa823a6 + e121005 commit d3cd7d2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Requests/Article/PatchArticleSingleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PatchArticleSingleRequest extends Request implements HasBody

public function resolveEndpoint(): string
{
return 'wms/articles/' . $this->uuid;
return 'wms/articles/' . $this->uuid . '/';
}

public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Inbound/PatchInboundSingleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PatchInboundSingleRequest extends Request implements HasBody

public function resolveEndpoint(): string
{
return 'wms/inbounds/' . $this->uuid;
return 'wms/inbounds/' . $this->uuid . '/';
}

public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Order/PatchOrderSingleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PatchOrderSingleRequest extends Request implements HasBody

public function resolveEndpoint(): string
{
return 'wms/orders/' . $this->uuid;
return 'wms/orders/' . $this->uuid . '/';
}

public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Variant/GetVariantSingleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GetVariantSingleRequest extends Request

public function resolveEndpoint(): string
{
return 'wms/variants/' . $this->uuid;
return 'wms/variants/' . $this->uuid . '/';
}

public function __construct(
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Variant/PatchVariantSingleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PatchVariantSingleRequest extends Request implements HasBody

public function resolveEndpoint(): string
{
return 'wms/variants/' . $this->uuid;
return 'wms/variants/' . $this->uuid . '/';
}

public function __construct(
Expand Down

0 comments on commit d3cd7d2

Please sign in to comment.