parent
925274da3e
commit
8a61efc380
|
|
@ -384,7 +384,7 @@ class DhcpController
|
||||||
* @OA\Property(property="address", type="string", example="172.30.4.11")
|
* @OA\Property(property="address", type="string", example="172.30.4.11")
|
||||||
* )
|
* )
|
||||||
* @OA\Get(
|
* @OA\Get(
|
||||||
* path="/opengnsys3/rest/dhcp/subnet/{subnetId}/hosts",
|
* path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts",
|
||||||
* summary="Get all hosts in a subnet",
|
* summary="Get all hosts in a subnet",
|
||||||
* @OA\Parameter(
|
* @OA\Parameter(
|
||||||
* name="subnetId",
|
* 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
|
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(
|
* @OA\Post(
|
||||||
* path="/opengnsys3/rest/dhcp/subnet/{subnetId}/host",
|
* path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts",
|
||||||
* summary="Add a DHCP host to a subnet",
|
* summary="Add a DHCP host to a subnet",
|
||||||
* @OA\Parameter(
|
* @OA\Parameter(
|
||||||
* name="subnetId",
|
* 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
|
public function addDhcpHost(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
|
|
@ -573,7 +573,7 @@ class DhcpController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @OA\Delete(
|
* @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",
|
* summary="Delete a DHCP host from a specific subnet",
|
||||||
* @OA\Parameter(
|
* @OA\Parameter(
|
||||||
* name="subnetId",
|
* 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
|
public function deleteDhcpHost(Request $request, $subnetId): JsonResponse
|
||||||
{
|
{
|
||||||
|
|
@ -672,7 +672,7 @@ class DhcpController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @OA\Put(
|
* @OA\Put(
|
||||||
* path="/opengnsys3/rest/dhcp/subnet/{subnetId}/host",
|
* path="/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts",
|
||||||
* summary="Update a DHCP host",
|
* summary="Update a DHCP host",
|
||||||
* @OA\Parameter(
|
* @OA\Parameter(
|
||||||
* name="subnetId",
|
* 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
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue