UserService

interface UserService

Functions

Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/{invitationId}/accept")
abstract suspend fun acceptUserInvitation(@Path(value = "userId") userId: String, @Path(value = "invitationId") invitationId: String): GenericResponse<Unit>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/{invitationId}/cancel")
abstract suspend fun cancelUserInvitation(@Path(value = "userId") userId: String, @Path(value = "invitationId") invitationId: String): GenericResponse<Unit>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/{invitationId}/decline")
abstract suspend fun declineUserInvitation(@Path(value = "userId") userId: String, @Path(value = "invitationId") invitationId: String): GenericResponse<Unit>
Link copied to clipboard
@DELETE(value = "/api/rainbow/enduser/v1.0/users/{userId}")
abstract suspend fun deleteUserAccount(@Path(value = "userId") userId: String): GenericResponse<Unit>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/settings/apis")
abstract suspend fun fetchApiSettings(): GenericDataResponse<ApiSettingsResponse>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/themes")
abstract suspend fun fetchAvailableThemes(@Query(value = "format") format: String = "full"): GenericDataResponse<List<RainbowTheme>>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/countries")
abstract suspend fun fetchCountries(): GenericDataResponse<List<Country>>
Link copied to clipboard
@POST(value = "/api/rainbow/suggestions/v1.0/suggestions")
abstract suspend fun fetchTargetedUserSuggestions(@QueryMap query: Map<String, String>): GenericDataResponse<TargetedUserSuggestionsResponse>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/users/{userId}")
abstract suspend fun fetchUserData(@Path(value = "userId") userId: String): GenericDataResponse<Contact>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/received")
abstract suspend fun fetchUserReceivedInvitations(@Path(value = "userId") userId: String, @QueryMap query: Map<String, String>): GenericDataResponse<List<Invitation>>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/sent")
abstract suspend fun fetchUserSentInvitations(@Path(value = "userId") userId: String, @QueryMap query: Map<String, String>): GenericDataResponse<List<Invitation>>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/users/{userId}/settings")
abstract suspend fun fetchUserSettings(@Path(value = "userId") userId: String): GenericDataResponse<UserSettingsResponse>
Link copied to clipboard
@GET(value = "/api/rainbow/suggestions/v1.0/suggestions")
abstract suspend fun fetchUserSuggestions(@QueryMap query: Map<String, String>): GenericDataResponse<List<Contact>>
Link copied to clipboard
@GET(value = "/api/rainbow/enduser/v1.0/users/{userId}/themes")
abstract suspend fun fetchUserTheme(@Path(value = "userId") userId: String): GenericDataResponse<RainbowTheme>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations")
abstract suspend fun inviteUser(@Path(value = "userId") userId: String, @Body body: InviteUserBody): GenericDataResponse<Invitation>
Link copied to clipboard
@DELETE(value = "/api/rainbow/enduser/v1.0/users/networks/{userId}")
abstract suspend fun removeContactFromRoster(@Path(value = "userId") userId: String): GenericResponse<Unit>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/{userId}/invitations/{invitationId}/re-send")
abstract suspend fun reSendInvitation(@Path(value = "userId") userId: String, @Path(value = "invitationId") invitationId: String): GenericDataResponse<Invitation>
Link copied to clipboard
@PUT(value = "/api/rainbow/enduser/v1.0/users/reset-password")
abstract suspend fun resetPassword(@Body body: Map<String, String>): GenericResponse<Unit>
Link copied to clipboard
@PUT(value = "/api/rainbow/enduser/v1.0/users/{userId}/themes/{themeId}")
abstract suspend fun selectTheme(@Path(value = "userId") userId: String, @Path(value = "themeId") themeId: String): GenericDataResponse<RainbowTheme>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/notifications/emails/self-register")
abstract suspend fun selfRegisterByEmail(@Body body: Map<String, String>): GenericResponse<Unit>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/users/self-register")
abstract suspend fun selfRegisterUser(@Body body: SelfRegisterBody): GenericDataResponse<Contact>
Link copied to clipboard
@PUT(value = "/api/rainbow/enduser/v1.0/users/{userId}/settings")
abstract suspend fun setUserSettings(@Path(value = "userId") userId: String, @Body body: UserSettingsBody): GenericResponse<Unit>
Link copied to clipboard
@POST(value = "/api/rainbow/enduser/v1.0/notifications/emails/reset-password")
abstract suspend fun startResetPassword(@Body body: Map<String, String>): GenericResponse<Unit>
Link copied to clipboard
@PUT(value = "/api/rainbow/enduser/v1.0/users/{userId}")
abstract suspend fun updateUser(@Path(value = "userId") userId: String, @Body body: UpdateUserRequest): GenericDataResponse<Contact>
Link copied to clipboard
@PUT(value = "/api/rainbow/enduser/v1.0/users/{userId}/change-password")
abstract suspend fun updateUserPassword(@Path(value = "userId") userId: String, @Body body: Map<String, String>): GenericResponse<Unit>