Skip to content

Commit

Permalink
refactor: cleanup deprecated management-api endpoint (#4713)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt authored Jan 14, 2025
1 parent 9697382 commit da20905
Show file tree
Hide file tree
Showing 61 changed files with 16 additions and 3,264 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"version": "3.0.5",
"version": "3.0.6",
"urlPath": "/v3",
"lastUpdated": "2025-01-08T14:26:00Z",
"lastUpdated": "2025-01-10T16:46:00Z",
"maturity": "stable"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ void beforeEach() throws IOException, InterruptedException {
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import org.eclipse.edc.connector.controlplane.api.management.catalog.transform.JsonObjectToCatalogRequestTransformer;
import org.eclipse.edc.connector.controlplane.api.management.catalog.transform.JsonObjectToDatasetRequestTransformer;
import org.eclipse.edc.connector.controlplane.api.management.catalog.v2.CatalogApiV2Controller;
import org.eclipse.edc.connector.controlplane.api.management.catalog.v3.CatalogApiV3Controller;
import org.eclipse.edc.connector.controlplane.api.management.catalog.v31alpha.CatalogApiV31AlphaController;
import org.eclipse.edc.connector.controlplane.api.management.catalog.validation.CatalogRequestValidator;
Expand Down Expand Up @@ -66,7 +65,6 @@ public void initialize(ServiceExtensionContext context) {
transformerRegistry.register(new JsonObjectToDatasetRequestTransformer());

var managementApiTransformerRegistry = transformerRegistry.forContext("management-api");
webService.registerResource(ApiContext.MANAGEMENT, new CatalogApiV2Controller(service, managementApiTransformerRegistry, validatorRegistry, context.getMonitor()));
webService.registerResource(ApiContext.MANAGEMENT, new CatalogApiV3Controller(service, managementApiTransformerRegistry, validatorRegistry));
webService.registerResource(ApiContext.MANAGEMENT, new CatalogApiV31AlphaController(service, managementApiTransformerRegistry, validatorRegistry));

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package org.eclipse.edc.connector.controlplane.api.management.catalog;

import org.eclipse.edc.connector.controlplane.api.management.catalog.v2.CatalogApiV2Controller;
import org.eclipse.edc.connector.controlplane.api.management.catalog.v3.CatalogApiV3Controller;
import org.eclipse.edc.connector.controlplane.api.management.catalog.v31alpha.CatalogApiV31AlphaController;
import org.eclipse.edc.junit.extensions.DependencyInjectionExtension;
Expand Down Expand Up @@ -57,7 +56,6 @@ void initiate_shouldRegisterValidators(CatalogApiExtension extension, ServiceExt
void initiate_shouldRegisterControllers(CatalogApiExtension extension, ServiceExtensionContext context) {
extension.initialize(context);

verify(webService).registerResource(any(), isA(CatalogApiV2Controller.class));
verify(webService).registerResource(any(), isA(CatalogApiV3Controller.class));
verify(webService).registerResource(any(), isA(CatalogApiV31AlphaController.class));
}
Expand Down

This file was deleted.

Loading

0 comments on commit da20905

Please sign in to comment.