feat: api endpoints

This commit is contained in:
Björn Fromme committed 2024-12-04 14:18:47 +01:00
1 parent 7379f5ac93
commit 231aaaac9b
26 files changed
+606 -43

No files matched your search

+15
View File
@@ -2,13 +2,28 @@
namespace App\BusProNet\Model;
use Symfony\Component\Serializer\Attribute\Groups;
class Hotel
{
#[Groups(['api:list', 'api:single'])]
public ?int $id = null;
#[Groups(['api:list', 'api:single'])]
public ?string $code = null;
#[Groups(['api:list', 'api:single'])]
public ?string $name = null;
#[Groups(['api:list', 'api:single'])]
public ?string $city = null;
#[Groups(['api:list', 'api:single'])]
public ?string $street = null;
#[Groups(['api:list', 'api:single'])]
public ?string $phone = null;
#[Groups(['api:list', 'api:single'])]
public ?string $country = null;
}