GroupApi

interface GroupApi

GroupApi (for internal use only)

Functions

Link copied to clipboard
@DELETE(value = "/v1/groups/{groupId}/users/{userId}")
abstract fun exileUser(@Path(value = "groupId") groupId: Int, @Path(value = "userId") userId: Long): Call<Void>
Link copied to clipboard
@GET(value = "/v1/groups/{groupId}")
abstract fun getGroupInfo(@Path(value = "groupId") groupId: Int): Call<GroupData>
Link copied to clipboard
@GET(value = "v1/roles")
abstract fun getGroupRoleInfo(@Query(value = "ids") roleId: Int): Call<RoleListData>
Link copied to clipboard
@GET(value = "/v1/groups/{groupId}/roles")
abstract fun getGroupRoles(@Path(value = "groupId") groupId: Int): Call<RoleListData>
Link copied to clipboard
@GET(value = "/v1/users/{userId}/groups/roles")
abstract fun getUserRoleInfo(@Path(value = "userId") userId: Long): Call<UserRolesData>
Link copied to clipboard
@PATCH(value = "/v1/groups/{groupId}/users/{userId}")
abstract fun rankUser(    @Path(value = "groupId") groupId: Int,     @Path(value = "userId") userId: Long,     @Body roleId: RoleRequest): Call<Void>