add rest api

This commit is contained in:
lubiana 2025-02-02 21:15:07 +01:00
parent 2b5d943116
commit d92a63fd7d
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
15 changed files with 2415 additions and 281 deletions

View file

@ -2,6 +2,7 @@
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\FoodOrderRepository;
use DateInterval;
use DateTimeImmutable;
@ -14,6 +15,7 @@ use Symfony\Component\Uid\Ulid;
use function iterator_to_array;
#[ORM\Entity(repositoryClass: FoodOrderRepository::class)]
#[ApiResource]
class FoodOrder
{
#[ORM\Column(nullable: true)]