forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parameterization of http data sources / data sinks (#341)
- Loading branch information
1 parent
8fa3680
commit d3ba751
Showing
45 changed files
with
963 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
src/app/component-library/data-address/data-address-type-select/data-address-type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export type DataAddressType = 'Custom-Data-Address-Json' | 'Http'; | ||
export type DataAddressType = | ||
| 'Custom-Data-Address-Json' | ||
| 'Custom-Transfer-Process-Request' | ||
| 'Http'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import {Inject, Injectable} from '@angular/core'; | ||
import {Observable, from} from 'rxjs'; | ||
import { | ||
BrokerServerClient, | ||
CatalogPageQuery, | ||
CatalogPageResult, | ||
ConnectorDetailPageQuery, | ||
ConnectorDetailPageResult, | ||
ConnectorPageQuery, | ||
ConnectorPageResult, | ||
DataOfferDetailPageQuery, | ||
DataOfferDetailPageResult, | ||
buildBrokerServerClient, | ||
} from '@sovity.de/broker-server-client'; | ||
import {APP_CONFIG, AppConfig} from '../../config/app-config'; | ||
|
||
@Injectable({providedIn: 'root'}) | ||
export class BrokerServerApiService { | ||
brokerServerClient: BrokerServerClient; | ||
|
||
constructor(@Inject(APP_CONFIG) private config: AppConfig) { | ||
this.brokerServerClient = buildBrokerServerClient({ | ||
managementApiUrl: this.config.managementApiUrl, | ||
managementApiKey: this.config.managementApiKey, | ||
}); | ||
} | ||
|
||
catalogPage( | ||
catalogPageQuery: CatalogPageQuery, | ||
): Observable<CatalogPageResult> { | ||
return from( | ||
this.brokerServerClient.brokerServerApi.catalogPage({catalogPageQuery}), | ||
); | ||
} | ||
|
||
dataOfferDetailPage( | ||
dataOfferDetailPageQuery: DataOfferDetailPageQuery, | ||
): Observable<DataOfferDetailPageResult> { | ||
return from( | ||
this.brokerServerClient.brokerServerApi.dataOfferDetailPage({ | ||
dataOfferDetailPageQuery, | ||
}), | ||
); | ||
} | ||
|
||
connectorPage( | ||
connectorPageQuery: ConnectorPageQuery, | ||
): Observable<ConnectorPageResult> { | ||
return from( | ||
this.brokerServerClient.brokerServerApi.connectorPage({ | ||
connectorPageQuery, | ||
}), | ||
); | ||
} | ||
|
||
connectorDetailPage( | ||
connectorDetailPageQuery: ConnectorDetailPageQuery, | ||
): Observable<ConnectorDetailPageResult> { | ||
return from( | ||
this.brokerServerClient.brokerServerApi.connectorDetailPage({ | ||
connectorDetailPageQuery, | ||
}), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.