except the key and secret what is the configuratio...
# help
b
except the key and secret what is the configuration for the lakefs endpoint?
r
Copy code
val api = io.lakefs.clients.api.Configuration.getDefaultApiClient()
import io.lakefs.clients.api.auth.HttpBasicAuth
api.setBasePath("<http://lakefs.dev.company.com>")

      val  basicAuth: HttpBasicAuth = api.getAuthentication("basic_auth").asInstanceOf[HttpBasicAuth]
        basicAuth.setUsername(dbutils.secrets.get("development","LAKEFS_ACCESS_KEY"))
        basicAuth.setPassword(dbutils.secrets.get("development","LAKEFS_SECRET_ACCESS_KEY"))
val obj = new ObjectsApi(api)
b
can you add '/api/v1' to the setBasePath
r
ah yep that’s fixed it! thanks for quick response. Might be helpful to have some validation on that property to throw an error message indicating it’s incorrect
b
Will it be possible if you can open an issue and we can address it? I assume it is because the SDK code is generated code.
r
will do
b
thank you