Change Output and added ogbott filters
parent
d70d2cf3f0
commit
68b460935f
|
@ -13,6 +13,7 @@ resources:
|
|||
filters:
|
||||
- 'api_platform.filter.og_live.order'
|
||||
- 'api_platform.filter.og_live.search'
|
||||
- 'api_platform.filter.og_live.boolean'
|
||||
|
||||
ApiPlatform\Metadata\Get:
|
||||
provider: App\State\Provider\OgLiveProvider
|
||||
|
|
|
@ -13,6 +13,7 @@ resources:
|
|||
filters:
|
||||
- 'api_platform.filter.pxe_template.order'
|
||||
- 'api_platform.filter.pxe_template.search'
|
||||
- 'api_platform.filter.pxe_template.boolean'
|
||||
|
||||
ApiPlatform\Metadata\Get:
|
||||
provider: App\State\Provider\PxeTemplateProvider
|
||||
|
|
|
@ -30,6 +30,11 @@ services:
|
|||
arguments: [ { 'id': 'exact', 'name': 'partial', } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.og_live.boolean:
|
||||
parent: 'api_platform.doctrine.orm.boolean_filter'
|
||||
arguments: [ { 'isDefault': ~, 'installed': ~ } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.hardware.search:
|
||||
parent: 'api_platform.doctrine.orm.search_filter'
|
||||
arguments: [ { 'id': 'exact', 'name': 'partial' } ]
|
||||
|
@ -78,11 +83,21 @@ services:
|
|||
$orderParameterName: 'order'
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.pxe_boot_file.search:
|
||||
parent: 'api_platform.doctrine.orm.search_filter'
|
||||
arguments: [ { 'id': 'exact', 'template': exact } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.pxe_template.search:
|
||||
parent: 'api_platform.doctrine.orm.search_filter'
|
||||
arguments: [ { 'id': 'exact', 'name': 'partial', } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.pxe_template.boolean:
|
||||
parent: 'api_platform.doctrine.orm.boolean_filter'
|
||||
arguments: [ { 'synchronized': ~ } ]
|
||||
tags: [ 'api_platform.filter' ]
|
||||
|
||||
api_platform.filter.user.order:
|
||||
parent: 'api_platform.doctrine.orm.order_filter'
|
||||
arguments:
|
||||
|
|
|
@ -13,16 +13,16 @@ final class ClientOutput extends AbstractOutput
|
|||
{
|
||||
CONST string TYPE = 'client';
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-boot-file:read'])]
|
||||
public string $name;
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
public string $type = self::TYPE;
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-boot-file:read'])]
|
||||
public ?string $ip = '';
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
#[Groups(['client:read', 'organizational-unit:read', 'pxe-boot-file:read'])]
|
||||
public ?string $mac = '';
|
||||
|
||||
#[Groups(['client:read', 'organizational-unit:read'])]
|
||||
|
|
|
@ -41,10 +41,10 @@ class OgLive extends AbstractEntity
|
|||
private ?string $filename = null;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $installed = null;
|
||||
private ?bool $installed = false;
|
||||
|
||||
#[ORM\Column(nullable: true)]
|
||||
private ?bool $isDefault = null;
|
||||
private ?bool $isDefault = false;
|
||||
|
||||
/**
|
||||
* @var Collection<int, Client>
|
||||
|
|
Loading…
Reference in New Issue