hello I created the little "foo" api with the api-platform and I am now trying to use my own entities but I keep getting the 404 error no resources found.
I am following this tutorial: https://api-platform.com/docs/distribution/
Here is my entity
<?php
namespace AppBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
/**
* Job
*
* @ApiResource
* @ORM\Entity
*/
class Job
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=100, nullable=false)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description", type="text")
*/
private $description;
/**
* @var Location The location this job is about.
*
* @ORM\ManyToOne(targetEntity="Location", inversedBy="jobs")
*/
private $location;
If anyone can help my out why this doesnt work I would realy appreciate it :)
Many thanks in advance!