refs #152 #153 #156 #157 Removes innecesaries endpoints

pull/1/head
Luis Gerardo Romero Garcia 2024-01-29 14:43:14 +01:00
parent 925274da3e
commit 8a61efc380
1 changed files with 9 additions and 20 deletions

View File

@ -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);
}
}