Skip to content

Commit

Permalink
Adjust to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJannsen committed Nov 21, 2024
1 parent b468e6b commit 727e5ff
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ class UserProfileApiGateway(
private val apiRequestService: ApiRequestService
) {
private val log = Logger.withTag(this::class.simpleName ?: "UserProfileApiGateway")

private val basePath = "user-identities"
suspend fun requestPreparedData(): PreparedData {
return apiRequestService.get("user-identity/prepared-data")

return apiRequestService.get("$basePath/prepared-data")
}

suspend fun createAndPublishNewUserProfile(
Expand All @@ -25,14 +26,14 @@ class UserProfileApiGateway(
"",
preparedData
)
return apiRequestService.post("user-identity/user-identities", createUserIdentityRequest)
return apiRequestService.post(basePath, createUserIdentityRequest)
}

suspend fun getUserIdentityIds(): List<String> {
return apiRequestService.get("user-identity/ids")
return apiRequestService.get("$basePath/ids")
}

suspend fun getSelectedUserProfile(): UserProfile {
return apiRequestService.get("user-identity/selected/user-profile")
return apiRequestService.get("$basePath/selected/user-profile")
}
}

0 comments on commit 727e5ff

Please sign in to comment.