Skip to content

Commit

Permalink
feat:created ledgers-deposit-account-rest-client
Browse files Browse the repository at this point in the history
  • Loading branch information
NkwaTambe committed Oct 29, 2024
1 parent 47e96cb commit ab298f6
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<groupId>de.adorsys.ledgers</groupId>
<artifactId>ledgers-deposit-account</artifactId>
<version>6.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>ledgers-deposit-account-rest-client</artifactId>
Expand All @@ -20,12 +21,26 @@
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ruleset.basedir>../..</ruleset.basedir>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
<version>4.1.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>de.adorsys.ledgers.deposit.api</groupId>
<artifactId>ledgers-deposit-account-rest-api</artifactId>
<version>6.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
*/

package de.adorsys.ledgers.deposit.rest.client;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.springframework.context.annotation.*;

import java.lang.annotation.*;

@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = {java.lang.annotation.ElementType.TYPE})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

package de.adorsys.ledgers.deposit.rest.client;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.*;

@Configuration
@ComponentScan(basePackageClasses= {LedgersDepositAccountRestClientBasePackage.class})
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG
* All rights are reserved.
*/

package de.adorsys.ledgers.deposit.rest.client.rest;

import de.adorsys.ledgers.deposit.api.resource.*;
import org.springframework.cloud.openfeign.*;

@FeignClient(value = "ledgersAccount", url = LedgersURL.LEDGERS_URL, path = AccountMgmResourceAPI.BASE_PATH)
public interface AccountMgmtRestClient extends AccountMgmResourceAPI {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG
* All rights are reserved.
*/

package de.adorsys.ledgers.deposit.rest.client.rest;

import de.adorsys.ledgers.deposit.api.resource.*;
import org.springframework.cloud.openfeign.*;

@FeignClient(value = "ledgersAccount", url = LedgersURL.LEDGERS_URL, path=AccountRestAPI.BASE_PATH)
public interface AccountRestClient extends AccountRestAPI {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2018-2023 adorsys GmbH and Co. KG
* All rights are reserved.
*/

package de.adorsys.ledgers.deposit.rest.client.rest;

@SuppressWarnings("java:S1214")
public interface LedgersURL {
String LEDGERS_URL="${ledgers.url:http://localhost:${server.port}}";
}

0 comments on commit ab298f6

Please sign in to comment.