Allow specification of configkey for microprofile clients (#10693)

This commit is contained in:
Maximilian Zellhofer
2021-10-27 08:28:17 +02:00
committed by GitHub
parent ae39d782e0
commit 6bbafdfa30
6 changed files with 15 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
*
*/
@RegisterRestClient
@RegisterRestClient(configKey="petstore")
@RegisterProvider(ApiExceptionMapper.class)
@Path("/pet")
public interface PetApi {

View File

@@ -34,7 +34,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
*
*/
@RegisterRestClient
@RegisterRestClient(configKey="petstore")
@RegisterProvider(ApiExceptionMapper.class)
@Path("/store")
public interface StoreApi {

View File

@@ -34,7 +34,7 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
*
*/
@RegisterRestClient
@RegisterRestClient(configKey="petstore")
@RegisterProvider(ApiExceptionMapper.class)
@Path("/user")
public interface UserApi {