Skip to content

Commit

Permalink
feat(api): add a POST endpoint to request the catalog (#2060)
Browse files Browse the repository at this point in the history
* feat(api): add catalog request endpoint

* use CriterionDto, introduce CatalogRequest...transformer
  • Loading branch information
paullatzelsperger committed Oct 10, 2022
1 parent 6e87492 commit a418469
Show file tree
Hide file tree
Showing 41 changed files with 2,070 additions and 1,406 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Microsoft Corporation - Refactoring
* Fraunhofer Institute for Software and Systems Engineering - extended method implementation
* Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - improvements
* ZF Friedrichshafen AG - enable asset filtering
*
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Contributors:
* Fraunhofer Institute for Software and Systems Engineering - initial API and implementation
* ZF Friedrichshafen AG - enable asset filtering
*
*/

package org.eclipse.dataspaceconnector.ids.api.multipart.dispatcher.sender.type;
Expand Down Expand Up @@ -55,11 +56,6 @@ public MultipartCatalogDescriptionRequestSender(SenderDelegateContext context) {
this.context = context;
}

@Override
public Class<CatalogRequest> getMessageType() {
return CatalogRequest.class;
}

/**
* Builds a {@link de.fraunhofer.iais.eis.DescriptionRequestMessage} for requesting another
* connector's self description. Includes paging information defined in the {@link CatalogRequest}.
Expand Down Expand Up @@ -129,6 +125,11 @@ public List<Class<? extends Message>> getAllowedResponseTypes() {
return List.of(DescriptionResponseMessageImpl.class);
}

@Override
public Class<CatalogRequest> getMessageType() {
return CatalogRequest.class;
}

private BaseConnector getBaseConnector(IdsMultipartParts parts) {
try {
var payload = Objects.requireNonNull(parts.getPayload());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Copyright (c) 2022 ZF Friedrichshafen AG
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* ZF Friedrichshafen AG - initial implementation
*
*/

package org.eclipse.dataspaceconnector.ids.api.multipart.util;

import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down
Loading

0 comments on commit a418469

Please sign in to comment.