Hi There :wave: I just started with Spryker and h...
# help
p
Hi There 👋 I just started with Spryker and have question regarding the Stub. My plan is it to call a Zed Gateway Controller without sending Parameters like in the Spryker Tutorials.
Copy code
// Pyz\Client\Training\Stub\TrainingStub.php

    public function getAllAntelope(): AntelopeCollectionTransfer
    {
        /** @var \Generated\Shared\Transfer\AntelopeCollectionTransfer $antelopeCollectionTransfer */
        $antelopeCollectionTransfer = $this->zedRequestClient->call('/training/gateway/get-all-antelopes', new AntelopeCollectionTransfer());



        return $antelopeCollectionTransfer;
    }
But the second argument of
ZedRequestClientInterface->call()
wants a
TransferInterface
what is the design purpoise behind this? There are cases where I just want to fetch Information from a Zed Controller without sending criteria Objects or other Parameters at all. With that sad it seems to be that under the hood
ZedRequestClientInterface->call(...)
translates into an internal
POST
requests ? My Zed-Gateway Controller looks like this btw:
Copy code
// Pyz\Zed\Training\Communication\Controller\GatewayController.php
    public function getAllAntelopesAction() :AntelopeCollectionTransfer
    {
        return $this->getFacade()
            ->getAntelopes();
    }
👀 1