diff --git a/src/DhcpBundle/Controller/DhcpController.php b/src/DhcpBundle/Controller/DhcpController.php index 21f3f68..c5b498f 100644 --- a/src/DhcpBundle/Controller/DhcpController.php +++ b/src/DhcpBundle/Controller/DhcpController.php @@ -384,7 +384,7 @@ class DhcpController * @OA\Property(property="address", type="string", example="172.30.4.11") * ) * @OA\Get( - * path="/opengnsys3/rest/dhcp/subnet/{subnetId}/hosts", + * path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", * summary="Get all hosts in a subnet", * @OA\Parameter( * name="subnetId", @@ -418,7 +418,7 @@ class DhcpController * ) * ) * ) - * @Route("/opengnsys3/rest/dhcp/subnet/{subnetId}/hosts", methods={"GET"}) + * @Route("/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", methods={"GET"}) */ public function getHosts($subnetId): JsonResponse { @@ -457,9 +457,9 @@ class DhcpController /** - * @Route("/opengnsys3/rest/dhcp/subnet/{subnetId}/host", methods={"POST"}) + * @Route("/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", methods={"POST"}) * @OA\Post( - * path="/opengnsys3/rest/dhcp/subnet/{subnetId}/host", + * path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", * summary="Add a DHCP host to a subnet", * @OA\Parameter( * name="subnetId", @@ -497,7 +497,7 @@ class DhcpController * ) * ) * ) - * @Route("/opengnsys3/rest/dhcp/subnet/{subnetId}/host", methods={"POST"}) + * @Route("/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", methods={"POST"}) */ public function addDhcpHost(Request $request): JsonResponse { @@ -573,7 +573,7 @@ class DhcpController /** * @OA\Delete( - * path="/opengnsys3/rest/dhcp/subnet/{subnetId}/host", + * path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", * summary="Delete a DHCP host from a specific subnet", * @OA\Parameter( * name="subnetId", @@ -607,7 +607,7 @@ class DhcpController * ) * ) * ) - * @Route("/opengnsys3/rest/dhcp/subnet/{subnetId}/host", methods={"DELETE"}) + * @Route("/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", methods={"DELETE"}) */ public function deleteDhcpHost(Request $request, $subnetId): JsonResponse { @@ -672,7 +672,7 @@ class DhcpController /** * @OA\Put( - * path="/opengnsys3/rest/dhcp/subnet/{subnetId}/host", + * path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", * summary="Update a DHCP host", * @OA\Parameter( * name="subnetId", @@ -711,7 +711,7 @@ class DhcpController * ) * ) * - * @Route("/opengnsys3/rest/dhcp/subnet/{subnetId}/host", methods={"PUT"}) + * @Route("/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts", methods={"PUT"}) */ public function updateDhcpHost(Request $request, $subnetId): JsonResponse { @@ -832,15 +832,4 @@ class DhcpController } - /** - * @Route("/opengnsys3/rest/info", methods={"GET"}) - */ - public function phpInfo(): Response - { - ob_start(); - phpinfo(); - $phpinfo = ob_get_clean(); - - return new Response($phpinfo); - } }