Skip to content

Commit

Permalink
DISPLAY-1030: openapiContext
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Oct 5, 2023
1 parent 57bab60 commit f86290f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions config/api_platform/screen_campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:
read: false
deserialize: false
validate: false
openapi_context:
openapiContext:
description: Delete a campaign from a screen.
summary: Delete a campaign from a screen.
operationId: delete-v1-screen-campaign-id
Expand Down Expand Up @@ -46,7 +46,7 @@ resources:
read: false
deserialize: false
validate: false
openapi_context:
openapiContext:
description: Update the collection of screens on a playlist.
summary: Update the collection of screens on a playlist.
operationId: put-v1-screen-campaign-id
Expand Down
5 changes: 2 additions & 3 deletions config/api_platform/tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resources:
datetime_format: 'Y-m-d\TH:i:s.v\Z'
itemOperations:
get:
openapi_context:
openapiContext:
description: Retrieves a tenant resource.
summary: Retrieve a tenant resource.
operationId: get-v1-tenant-id
Expand All @@ -31,7 +31,7 @@ resources:
collectionOperations:
get:
filters: ['entity.search_filter', 'entity.blameable_filter']
openapi_context:
openapiContext:
operationId: get-v1-tenants
description: Retrieves a collection of tenant resources.
summary: Retrieves a collection of tenant resources.
Expand All @@ -58,4 +58,3 @@ resources:
application/ld+json:
examples:
headers: {}

10 changes: 5 additions & 5 deletions config/api_platform/theme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resources:
operations:
ApiPlatform\Metadata\Get:
provider: App\State\ThemeProvider
openapi_context:
openapiContext:
description: Retrieves a Theme resource.
summary: Retrieve a Theme resource.
operationId: get-v1-theme-id
Expand All @@ -32,7 +32,7 @@ resources:

ApiPlatform\Metadata\Put:
security: 'is_granted("ROLE_ADMIN")'
openapi_context:
openapiContext:
description: Update a Theme resource.
summary: Update a Theme resource.
operationId: put-v1-theme-id
Expand All @@ -49,7 +49,7 @@ resources:

ApiPlatform\Metadata\Delete:
security: 'is_granted("ROLE_ADMIN")'
openapi_context:
openapiContext:
description: Delete a Theme resource.
summary: Delete a Theme resource.
operationId: delete-v1-theme-id
Expand All @@ -66,7 +66,7 @@ resources:

ApiPlatform\Metadata\GetCollection:
filters: ['entity.search_filter', 'entity.blameable_filter', 'entity.order_filter', 'created.at.order_filter', 'updated.at.order_filter']
openapi_context:
openapiContext:
operationId: get-v1-themes
description: Retrieve a collection of Theme resources.
summary: Retrieve a collection of Theme resources.
Expand Down Expand Up @@ -96,7 +96,7 @@ resources:

ApiPlatform\Metadata\Post:
security: 'is_granted("ROLE_ADMIN")'
openapi_context:
openapiContext:
operationId: create-v1-themes
description: Creates a Theme resource.
summary: Creates a Theme resource.
Expand Down

0 comments on commit f86290f

Please sign in to comment.