我正在使用api平臺(https://api-platform.com/)我的網站的框架,我試圖用不同的標準多次序列化一個實體的集合。我創建了下面的例子實體: EntityWithFilteredCollection namespace AppBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Co
你好我創建了api平臺的小「富」api,我現在試圖使用我自己的實體,但我一直得到404錯誤找不到資源。 我下面這個教程: https://api-platform.com/docs/distribution/ 這裏是我的實體 <?php
namespace AppBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use
我剛開始使用dunglas api平臺。我使用v2.0.0-rc1,並添加了一個自定義操作來啓用/禁用用戶。 這是我的用戶 <?php
namespace Zoef\UserBundle\Action;
use Zoef\UserBundle\Entity\User;
use Doctrine\Common\Persistence\ManagerRegistry;
use Sensio