ogcore/config/api_platform/BootServer.yaml

80 lines
3.2 KiB
YAML

resources:
App\Entity\BootServer:
processor: App\State\Processor\BootServerProcessor
input: App\Dto\Input\BootServerInput
output: App\Dto\Output\BootServerOutput
normalizationContext:
groups: ['default', 'boot-server:read']
denormalizationContext:
groups: ['boot-server:write']
operations:
ApiPlatform\Metadata\GetCollection:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Get:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Put:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Patch:
provider: App\State\Provider\BootServerProvider
ApiPlatform\Metadata\Post: ~
ApiPlatform\Metadata\Delete: ~
oglives_sync:
shortName: BootServer
class: ApiPlatform\Metadata\Post
method: POST
input: false
uriTemplate: /boot-servers/{uuid}/oglives/sync
controller: App\Controller\OgBoot\OgLive\SyncAction
pxe_templates_sync:
shortName: BootServer
class: ApiPlatform\Metadata\Post
method: POST
input: false
uriTemplate: /boot-servers/{uuid}/pxe-templates/sync
controller: App\Controller\OgBoot\PxeTemplate\SyncAction
get_collection_oglives:
shortName: BootServer
description: Get collection of OgLives from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-collection
controller: App\Controller\OgBoot\OgLive\GetCollectionAction
get_isos:
shortName: BootServer
description: Get Isos of OgLive from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-isos
controller: App\Controller\OgBoot\OgLive\GetIsosAction
get_default_oglive:
shortName: BootServer
description: Get default OgLive attached to BootServer
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/oglives/get-default
controller: App\Controller\OgBoot\OgLive\GetDefaultAction
get_collection_templates:
shortName: BootServer
description: Get collection of PxeTemplate from external boot server
class: ApiPlatform\Metadata\Get
method: GET
input: false
uriTemplate: /boot-servers/{uuid}/pxe-templates/get-collection
controller: App\Controller\OgBoot\PxeTemplate\GetCollectionAction
properties:
App\Entity\BootServer:
id:
identifier: false
uuid:
identifier: true