-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SELC-4077] Feat: added clients for core API (#348)
* add clients for core API * refactor clientConfig class
- Loading branch information
1 parent
18f252b
commit 18ddba3
Showing
13 changed files
with
3,003 additions
and
1,042 deletions.
There are no files selected for viewing
3,927 changes: 2,929 additions & 998 deletions
3,927
connector/rest/docs/openapi/api-selfcare-core-docs.json
Large diffs are not rendered by default.
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
8 changes: 8 additions & 0 deletions
8
...java/it/pagopa/selfcare/dashboard/connector/rest/client/CoreInstitutionApiRestClient.java
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,8 @@ | ||
package it.pagopa.selfcare.dashboard.connector.rest.client; | ||
|
||
import it.pagopa.selfcare.core.generated.openapi.v1.api.InstitutionApi; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
|
||
@FeignClient(name = "${rest-client.ms-core-institution-api.serviceCode}", url = "${rest-client.ms-core.base-url}") | ||
public interface CoreInstitutionApiRestClient extends InstitutionApi { | ||
} |
9 changes: 9 additions & 0 deletions
9
.../java/it/pagopa/selfcare/dashboard/connector/rest/client/CoreManagementApiRestClient.java
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,9 @@ | ||
package it.pagopa.selfcare.dashboard.connector.rest.client; | ||
|
||
import it.pagopa.selfcare.core.generated.openapi.v1.api.ManagementApi; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
|
||
@FeignClient(name = "${rest-client.ms-core-management-api.serviceCode}", url = "${rest-client.ms-core.base-url}") | ||
|
||
public interface CoreManagementApiRestClient extends ManagementApi { | ||
} |
8 changes: 8 additions & 0 deletions
8
.../java/it/pagopa/selfcare/dashboard/connector/rest/client/CoreOnboardingApiRestClient.java
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,8 @@ | ||
package it.pagopa.selfcare.dashboard.connector.rest.client; | ||
|
||
import it.pagopa.selfcare.core.generated.openapi.v1.api.OnboardingApi; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
|
||
@FeignClient(name = "${rest-client.ms-core-onboarding-api.serviceCode}", url = "${rest-client.ms-core.base-url}") | ||
public interface CoreOnboardingApiRestClient extends OnboardingApi { | ||
} |
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
15 changes: 0 additions & 15 deletions
15
.../pagopa/selfcare/dashboard/connector/rest/config/MsCoreDelegationApiRestClientConfig.java
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
.../main/java/it/pagopa/selfcare/dashboard/connector/rest/config/MsCoreRestClientConfig.java
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,16 +1,16 @@ | ||
package it.pagopa.selfcare.dashboard.connector.rest.config; | ||
|
||
import it.pagopa.selfcare.commons.connector.rest.config.RestClientBaseConfig; | ||
import it.pagopa.selfcare.dashboard.connector.rest.client.MsCoreRestClient; | ||
import it.pagopa.selfcare.dashboard.connector.rest.client.MsCoreUserApiRestClient; | ||
import it.pagopa.selfcare.dashboard.connector.rest.client.*; | ||
import org.springframework.cloud.openfeign.EnableFeignClients; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Import; | ||
import org.springframework.context.annotation.PropertySource; | ||
|
||
@Configuration | ||
@Import(RestClientBaseConfig.class) | ||
@EnableFeignClients(clients = {MsCoreRestClient.class, MsCoreUserApiRestClient.class}) | ||
@EnableFeignClients(clients = {MsCoreRestClient.class, CoreUserApiRestClient.class, CoreDelegationApiRestClient.class, | ||
CoreInstitutionApiRestClient.class, CoreOnboardingApiRestClient.class, CoreManagementApiRestClient.class}) | ||
@PropertySource("classpath:config/ms-core-rest-client.properties") | ||
class MsCoreRestClientConfig { | ||
public class MsCoreRestClientConfig { | ||
} |
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