Skip to content
Snippets Groups Projects
Commit 4f14ddab authored by ROUILLON Tom's avatar ROUILLON Tom
Browse files

Update API

parent 23a9881c
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,14 @@ class OrdreTournee
#[ORM\Column]
private ?int $numOrdre = null;
#[ORM\ManyToOne(inversedBy: 'test')]
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?Tournee $tournee_id = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?PointDeDepot $point_depot_id = null;
public function getId(): ?int
{
return $this->id;
......@@ -48,4 +52,16 @@ class OrdreTournee
return $this;
}
public function getPointDepotId(): ?PointDeDepot
{
return $this->point_depot_id;
}
public function setPointDepotId(?PointDeDepot $point_depot_id): static
{
$this->point_depot_id = $point_depot_id;
return $this;
}
}
......@@ -14,23 +14,8 @@ class Tournee
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $jourPreparation = null;
public function getId(): ?int
{
return $this->id;
}
public function getJourPreparation(): ?\DateTimeInterface
{
return $this->jourPreparation;
}
public function setJourPreparation(\DateTimeInterface $jourPreparation): static
{
$this->jourPreparation = $jourPreparation;
return $this;
}
}
......@@ -13,4 +13,4 @@ Dans notre cas, nous avons choisi Symfony. Donc, nous avons besoin de 3 containe
Un container adminer a été ajouté pour pouvoir gérer la base de données.
Lien vers la documentation swagger de l'api : http://localhost:8080/api
\ No newline at end of file
Lien vers la documentation swagger de l'api : http://localhost:8080/api, après avoir lancé le projet avec `docker-compose up -d`.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment