Skip to content

Commit

Permalink
Add configurable prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Oct 14, 2024
1 parent 52f54a1 commit 9b1cc94
Show file tree
Hide file tree
Showing 137 changed files with 166 additions and 143 deletions.
4 changes: 2 additions & 2 deletions config/pimcore/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
studio_api:
pimcore_studio_api:
resource: "../../src/"
type: annotation
prefix: /studio/api
prefix: '%pimcore_studio_backend.url_prefix%'
options:
expose: true
3 changes: 2 additions & 1 deletion doc/10_Extending_Studio/01_Endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ To add a custom endpoint to the Pimcore Studio Backend you need to implement it
- We try to leverage symfony functionality as much as possible for parameters with `#[MapQueryString]` or `#[MapRequestPayload]` attributes

### Example

```php
<?php
declare(strict_types=1);
Expand Down Expand Up @@ -79,7 +80,7 @@ final class CollectionController extends AbstractApiController
#[Route('/notes', name: 'pimcore_studio_api_get_notes', methods: ['GET'])]
#[IsGranted(UserPermissions::NOTES_EVENTS->value)]
#[Get(
path: self::API_PATH . '/notes',
path: self::PREFIX . '/notes',
operationId: 'note_get_collection',
description: 'note_get_collection_description',
summary: 'note_get_collection_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/CloneController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(
#[Route('/assets/{id}/clone/{parentId}', name: 'pimcore_studio_api_assets_clone', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/{id}/clone/{parentId}',
path: self::PREFIX . '/assets/{id}/clone/{parentId}',
operationId: 'asset_clone',
description: 'asset_clone_description',
summary: 'asset_clone_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Data/CustomMetadataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
#[Route('/assets/{id}/custom-metadata', name: 'pimcore_studio_api_get_asset_custom_metadata', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[GET(
path: self::API_PATH . '/assets/{id}/custom-metadata',
path: self::PREFIX . '/assets/{id}/custom-metadata',
operationId: 'asset_custom_metadata_get_by_id',
description: 'asset_custom_metadata_get_by_id_description',
summary: 'asset_custom_metadata_get_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Data/CustomSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
#[Route('/assets/{id}/custom-settings', name: 'pimcore_studio_api_get_asset_custom_settings', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[GET(
path: self::API_PATH . '/assets/{id}/custom-settings',
path: self::PREFIX . '/assets/{id}/custom-settings',
operationId: 'asset_custom_settings_get_by_id',
description: 'asset_custom_settings_get_by_id_description',
summary: 'asset_custom_settings_get_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Data/TextController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(
#[Route('/assets/{id}/text', name: 'pimcore_studio_api_get_asset_data_text', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/text',
path: self::PREFIX . '/assets/{id}/text',
operationId: 'asset_get_text_data_by_id',
description: 'asset_get_text_data_by_id_description',
summary: 'asset_get_text_data_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Document/PreviewStreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/document/stream/pdf-preview',
path: self::PREFIX . '/assets/{id}/document/stream/pdf-preview',
operationId: 'asset_document_stream_preview',
description: 'asset_document_stream_preview_description',
summary: 'asset_document_stream_preview_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/CreateCsvController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
#[Route('/assets/csv/create', name: 'pimcore_studio_api_create_csv_asset', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/csv/create',
path: self::PREFIX . '/assets/csv/create',
operationId: 'asset_create_csv',
description: 'asset_create_csv_description',
summary: 'asset_create_csv_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/CreateZipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(
#[Route('/assets/zip/create', name: 'pimcore_studio_api_create_zip_asset', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/zip/create',
path: self::PREFIX . '/assets/zip/create',
operationId: 'asset_create_zip',
description: 'asset_create_zip_description',
summary: 'asset_create_zip_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/DeleteCsvController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
#[Route('/assets/download/csv/{jobRunId}', name: 'pimcore_studio_api_csv_delete', methods: ['DELETE'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Delete(
path: self::API_PATH . '/assets/download/csv/{jobRunId}',
path: self::PREFIX . '/assets/download/csv/{jobRunId}',
operationId: 'asset_delete_csv',
description: 'asset_delete_csv_description',
summary: 'asset_delete_csv_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/DeleteZipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
#[Route('/assets/download/zip/{jobRunId}', name: 'pimcore_studio_api_zip_delete', methods: ['DELETE'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Delete(
path: self::API_PATH . '/assets/download/zip/{jobRunId}',
path: self::PREFIX . '/assets/download/zip/{jobRunId}',
operationId: 'asset_delete_zip',
description: 'asset_delete_zip_description',
summary: 'asset_delete_zip_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/DownloadCsvController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
#[Route('/assets/download/csv/{jobRunId}', name: 'pimcore_studio_api_csv_download_asset', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/download/csv/{jobRunId}',
path: self::PREFIX . '/assets/download/csv/{jobRunId}',
operationId: 'asset_download_csv',
description: 'asset_download_csv_description',
summary: 'asset_download_csv_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Download/DownloadZipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
#[Route('/assets/download/zip/{jobRunId}', name: 'pimcore_studio_api_zip_download_asset', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/download/zip/{jobRunId}',
path: self::PREFIX . '/assets/download/zip/{jobRunId}',
operationId: 'asset_download_zip',
description: 'asset_download_zip_description',
summary: 'asset_download_zip_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(
#[Route('/assets/{id}/download', name: 'pimcore_studio_api_download_asset', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/download',
path: self::PREFIX . '/assets/{id}/download',
operationId: 'asset_download_by_id',
description: 'asset_download_by_id_description',
summary: 'asset_download_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/GetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
#[Route('/assets/{id}', name: 'pimcore_studio_api_get_asset', requirements: ['id' => '\d+'], methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}',
path: self::PREFIX . '/assets/{id}',
operationId: 'asset_get_by_id',
description: 'asset_get_by_id_description',
summary: 'asset_get_by_id_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/grid/available-columns',
path: self::PREFIX . '/assets/grid/available-columns',
operationId: 'asset_get_available_grid_columns',
description: 'asset_get_available_grid_columns_description',
summary: 'asset_get_available_grid_columns_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/grid/configuration/{folderId}',
path: self::PREFIX . '/assets/grid/configuration/{folderId}',
operationId: 'asset_get_grid_configuration_by_folderId',
description: 'asset_get_grid_configuration_by_folderId_description',
summary: 'asset_get_grid_configuration_by_folderId_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/grid/configurations/{folderId}',
path: self::PREFIX . '/assets/grid/configurations/{folderId}',
operationId: 'asset_get_saved_grid_configurations',
description: 'asset_get_saved_grid_configurations_description',
summary: 'asset_get_saved_grid_configurations_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/grid/configuration/save',
path: self::PREFIX . '/assets/grid/configuration/save',
operationId: 'asset_save_grid_configuration',
description: 'asset_save_grid_configuration_description',
summary: 'asset_save_grid_configuration_description',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/grid/configuration/set-as-favorite/{configurationId}/{folderId}',
path: self::PREFIX . '/assets/grid/configuration/set-as-favorite/{configurationId}/{folderId}',
operationId: 'asset_set_grid_configuration_as_favorite',
description: 'asset_set_grid_configuration_as_favorite_description',
summary: 'asset_set_grid_configuration_as_favorite_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Put(
path: self::API_PATH . '/assets/grid/configuration/update/{configurationId}',
path: self::PREFIX . '/assets/grid/configuration/update/{configurationId}',
operationId: 'asset_update_grid_configuration',
description: 'asset_update_grid_configuration_description',
summary: 'asset_update_grid_configuration_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Grid/GetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(
#[Route('/assets/grid', name: 'pimcore_studio_api_get_asset_grid', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/grid',
path: self::PREFIX . '/assets/grid',
operationId: 'asset_get_grid',
description: 'asset_get_grid_description',
summary: 'asset_get_grid_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Image/CustomDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/image/download/custom',
path: self::PREFIX . '/assets/{id}/image/download/custom',
operationId: 'asset_image_download_custom',
description: 'asset_image_download_custom_description',
summary: 'asset_image_download_custom_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Image/FormatDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/image/download/format/{format}',
path: self::PREFIX . '/assets/{id}/image/download/format/{format}',
operationId: 'asset_image_download_by_format',
description: 'asset_image_download_by_format_description',
summary: 'asset_image_download_by_format_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Image/ThumbnailDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/image/download/thumbnail/{thumbnailName}',
path: self::PREFIX . '/assets/{id}/image/download/thumbnail/{thumbnailName}',
operationId: 'asset_image_download_by_thumbnail',
description: 'asset_image_download_by_thumbnail_description',
summary: 'asset_image_download_by_thumbnail_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/PatchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(
#[Route('/assets', name: 'pimcore_studio_api_patch_asset', methods: ['PATCH'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Patch(
path: self::API_PATH . '/assets',
path: self::PREFIX . '/assets',
operationId: 'asset_patch_by_id',
description: 'asset_patch_by_id_description',
summary: 'asset_patch_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/TreeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(
#[Route('/assets/tree', name: 'pimcore_studio_api_assets_tree', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/tree',
path: self::PREFIX . '/assets/tree',
operationId: 'asset_get_tree',
description: 'asset_get_tree_description',
summary: 'asset_get_tree_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/UpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(
#[Route('/assets/{id}', name: 'pimcore_studio_api_update_asset', methods: ['PUT'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Put(
path: self::API_PATH . '/assets/{id}',
path: self::PREFIX . '/assets/{id}',
operationId: 'asset_update_by_id',
description: 'asset_update_by_id_description',
summary: 'asset_update_by_id_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Upload/AddController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct(
#[Route('/assets/add/{parentId}', name: 'pimcore_studio_api_assets_add', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/add/{parentId}',
path: self::PREFIX . '/assets/add/{parentId}',
operationId: 'asset_add',
description: 'asset_add_description',
summary: 'asset_add_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Upload/InfoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
#[Route('/assets/exists/{parentId}', name: 'pimcore_studio_api_asset_upload_info', methods: ['GET'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/exists/{parentId}',
path: self::PREFIX . '/assets/exists/{parentId}',
operationId: 'asset_upload_info',
description: 'asset_upload_info_description',
summary: 'asset_upload_info_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Upload/ReplaceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
#[Route('/assets/{id}/replace', name: 'pimcore_studio_api_assets_replace', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/{id}/replace',
path: self::PREFIX . '/assets/{id}/replace',
operationId: 'asset_replace',
description: 'asset_replace_description',
summary: 'asset_replace_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Upload/ZipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(
#[Route('/assets/add-zip/{parentId}', name: 'pimcore_studio_api_assets_upload_zip', methods: ['POST'])]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Post(
path: self::API_PATH . '/assets/add-zip/{parentId}',
path: self::PREFIX . '/assets/add-zip/{parentId}',
operationId: 'asset_upload_zip',
description: 'asset_upload_zip_description',
summary: 'asset_upload_zip_summary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/video/stream/image-thumbnail',
path: self::PREFIX . '/assets/{id}/video/stream/image-thumbnail',
operationId: 'asset_video_image_thumbnail_stream',
description: 'asset_video_image_thumbnail_stream_description',
summary: 'asset_video_image_thumbnail_stream_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Video/ThumbnailDownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/video/download/{thumbnailName}',
path: self::PREFIX . '/assets/{id}/video/download/{thumbnailName}',
operationId: 'asset_video_download_by_thumbnail',
description: 'asset_video_download_by_thumbnail_description',
summary: 'asset_video_download_by_thumbnail_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Asset/Controller/Video/ThumbnailStreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::ASSETS->value)]
#[Get(
path: self::API_PATH . '/assets/{id}/video/stream/{thumbnailName}',
path: self::PREFIX . '/assets/{id}/video/stream/{thumbnailName}',
operationId: 'asset_video_stream_by_thumbnail',
description: 'asset_video_stream_by_thumbnail_description',
summary: 'asset_video_stream_by_thumbnail_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Authorization/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class LoginController extends AbstractApiController
{
#[Route('/login', name: 'pimcore_studio_api_login', methods: ['POST'])]
#[Post(
path: self::API_PATH . '/login',
path: self::PREFIX . '/login',
operationId: 'login',
description: 'login_description',
summary: 'login_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/Authorization/Controller/LogoutController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class LogoutController extends AbstractApiController
{
#[Route('/logout', name: 'pimcore_studio_api_logout', methods: ['POST'])]
#[Post(
path: self::API_PATH . '/logout',
path: self::PREFIX . '/logout',
operationId: 'logout',
description: 'logout_description',
summary: 'logout_summary',
Expand Down
13 changes: 5 additions & 8 deletions src/Controller/AbstractApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,19 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
use Symfony\Component\Serializer\SerializerInterface;

/**
* @internal
*/
#[Route('/studio/api')]

abstract class AbstractApiController extends AbstractController
{
public const VOTER_PUBLIC_STUDIO_API = 'PUBLIC_STUDIO_API';

public const API_PATH = '/studio/api';
public const PREFIX = '{prefix}';

public function __construct(protected readonly SerializerInterface $serializer)
public function __construct(
protected readonly SerializerInterface $serializer,
)
{

}

protected function jsonResponse(
Expand Down
2 changes: 1 addition & 1 deletion src/DataObject/Controller/AddController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(
#[Route('/data-objects/add/{parentId}', name: 'pimcore_studio_api_data_objects_add', methods: ['POST'])]
#[IsGranted(UserPermissions::DATA_OBJECTS->value)]
#[Post(
path: self::API_PATH . '/data-objects/add/{parentId}',
path: self::PREFIX . '/data-objects/add/{parentId}',
operationId: 'data_object_add',
description: 'data_object_add_description',
summary: 'data_object_add_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/DataObject/Controller/CloneController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __construct(
#[Route('/data-objects/{id}/clone/{parentId}', name: 'pimcore_studio_api_data_objects_clone', methods: ['POST'])]
#[IsGranted(UserPermissions::DATA_OBJECTS->value)]
#[Post(
path: self::API_PATH . '/data-objects/{id}/clone/{parentId}',
path: self::PREFIX . '/data-objects/{id}/clone/{parentId}',
operationId: 'data_object_clone',
description: 'data_object_clone_description',
summary: 'data_object_clone_summary',
Expand Down
2 changes: 1 addition & 1 deletion src/DataObject/Controller/GetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct(
)]
#[IsGranted(UserPermissions::DATA_OBJECTS->value)]
#[Get(
path: self::API_PATH . '/data-objects/{id}',
path: self::PREFIX . '/data-objects/{id}',
operationId: 'data_object_get_by_id',
description: 'data_object_get_by_id_description',
summary: 'data_object_get_by_id_summary',
Expand Down
Loading

0 comments on commit 9b1cc94

Please sign in to comment.