Skip to content

Commit

Permalink
Merge pull request #22 from dealer4dealer/fix-returned-results
Browse files Browse the repository at this point in the history
Fixed returned results from API calls
  • Loading branch information
AlaaSemsemea authored Mar 24, 2021
2 parents 0d2e38a + 7a88844 commit 0d5b3b7
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ConnectorOrderStatusesHistory extends Resource
{

/**
* @return \Doctrine\Common\Persistence\ObjectRepository|\Doctrine\ORM\EntityRepository|\Shopware\Models\Dispatch\Repository
* @return \Doctrine\ORM\EntityRepository
*/
public function getRepository()
{
Expand Down
6 changes: 4 additions & 2 deletions ExactConnectorHelper/Controllers/Api/ConnectorCurrencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
6 changes: 4 additions & 2 deletions ExactConnectorHelper/Controllers/Api/ConnectorFreeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
6 changes: 4 additions & 2 deletions ExactConnectorHelper/Controllers/Api/ConnectorVatCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ public function init()
*/
public function indexAction()
{
$limit = $this->Request()->getParam('limit', 1000);
$offset = $this->Request()->getParam('start', 0);
$filter = $this->Request()->getParam('filter', []);
$sort = $this->Request()->getParam('sort', []);
$sort = $this->Request()->getParam('sort', []);

$result = $this->resource->getList($filter, $sort);
$result = $this->resource->getList($offset, $limit, $filter, $sort);

$this->View()->assign($result);
$this->View()->assign('success', true);
Expand Down
8 changes: 4 additions & 4 deletions ExactConnectorHelper/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<label lang="en">Exact Connector Helper</label>
<label lang="de">Exact Connector Helper</label>
<label lang="nl">Exact Connector Helper</label>
<version>2.2.2</version>
<version>2.2.3</version>
<copyright>(c) by dealer4dealer</copyright>
<license>proprietary</license>
<author>dealer4dealer</author>
<link>https://www.dealer4dealer.nl</link>
<compatibility minVersion="5.5.0"/>
<changelog version="2.2.2">
<changelog version="2.2.3">
<changes>
<![CDATA[
<p>
<ul>
<li>Added Limits to API resources</li>
<li>Minor fixes to API resources</li>
</ul>
</p>
]]>
Expand All @@ -24,7 +24,7 @@
<![CDATA[
<p>
<ul>
<li>Einschränkungen für API-Ressourcen hinzugefügt.</li>
<li>Kleinere Korrekturen an API-Ressourcen</li>
</ul>
</p>
]]>
Expand Down

0 comments on commit 0d5b3b7

Please sign in to comment.