diff --git a/src/Command/LoadOrganizationalUnitDefaultCommand.php b/src/Command/LoadOrganizationalUnitDefaultCommand.php index 42ed7f4..57ecae8 100644 --- a/src/Command/LoadOrganizationalUnitDefaultCommand.php +++ b/src/Command/LoadOrganizationalUnitDefaultCommand.php @@ -132,7 +132,6 @@ class LoadOrganizationalUnitDefaultCommand extends Command $clientEntity->setMaintenance(false); $clientEntity->setOrganizationalUnit($classroomEntity); $this->entityManager->persist($clientEntity); - } } diff --git a/src/OpenApi/OpenApiFactory.php b/src/OpenApi/OpenApiFactory.php index 5587cd3..61763a5 100644 --- a/src/OpenApi/OpenApiFactory.php +++ b/src/OpenApi/OpenApiFactory.php @@ -744,7 +744,7 @@ final readonly class OpenApiFactory implements OpenApiFactoryInterface $openApi->getPaths()->addPath('/opengnsys/rest//ous/{centerId}/labs', (new Model\PathItem())->withGet( (new Model\Operation('getClassrooms')) - ->withTags(['Organizational Unit']) + ->withTags(['UDS']) ->withSummary('Obtener los laboratorios de una Unidad Organizacional específica') ->withParameters([ new Model\Parameter( @@ -786,9 +786,53 @@ final readonly class OpenApiFactory implements OpenApiFactoryInterface ]) )); + $openApi->getPaths()->addPath('/opengnsys/rest//ous/{centerId}/images', (new Model\PathItem())->withGet( + (new Model\Operation('getImages')) + ->withTags(['UDS']) + ->withSummary('Obtener las imágenes de una Unidad Organizacional específica') + ->withParameters([ + new Model\Parameter( + 'centerId', + 'path', + 'El ID de la Unidad Organizacional', + true, + false, + ) + ]) + ->withResponses([ + Response::HTTP_OK => [ + 'description' => 'Lista de Imagenes', + 'content' => [ + 'application/json' => [ + 'schema' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'id' => [ + 'type' => 'integer', + 'example' => 1, + ], + 'name' => [ + 'type' => 'string', + 'example' => 'Nombre del Laboratorio', + ], + 'description' => [ + 'type' => 'string', + 'example' => 'Descripción del Laboratorio', + ] + ] + ] + ] + ] + ] + ] + ]) + )); + $openApi->getPaths()->addPath('/opengnsys/rest//info', (new Model\PathItem())->withGet( (new Model\Operation('getOpengnsysInfo')) - ->withTags(['General']) + ->withTags(['UDS']) ->withSummary('Obtener información general de OpenGnsys') ->withResponses([ Response::HTTP_OK => [