From 0fb85a7f18a2e989b1ac3b941bcea156e84d2b6a Mon Sep 17 00:00:00 2001 From: Viktor Kolomeyko Date: Thu, 6 Jun 2024 13:13:30 +0100 Subject: [PATCH] ES-2162: Use constant for `v5_3` version path (#6187) --- .../src/main/kotlin/net/corda/restclient/CordaRestClient.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/rest/generated-rest-client/src/main/kotlin/net/corda/restclient/CordaRestClient.kt b/libs/rest/generated-rest-client/src/main/kotlin/net/corda/restclient/CordaRestClient.kt index a789e6805b4..ae000ba46b4 100644 --- a/libs/rest/generated-rest-client/src/main/kotlin/net/corda/restclient/CordaRestClient.kt +++ b/libs/rest/generated-rest-client/src/main/kotlin/net/corda/restclient/CordaRestClient.kt @@ -1,5 +1,6 @@ package net.corda.restclient +import net.corda.rest.annotations.RestApiVersion import net.corda.restclient.generated.apis.CPIApi import net.corda.restclient.generated.apis.CertificateApi import net.corda.restclient.generated.apis.ConfigurationApi @@ -55,7 +56,7 @@ class CordaRestClient( ) { companion object { - private const val API_VERSION = "/api/v5_3" + private val API_VERSION = "/api/${RestApiVersion.C5_3.versionPath}" /** * Create an instance of CordaRestClient with the given baseUrl, username and password.