mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
change endpoint
This commit is contained in:
@ -14,7 +14,7 @@ class UserPermissionApi {
|
|||||||
Future<List<RolesUserModel>> fetchUsers(String projectId) async {
|
Future<List<RolesUserModel>> fetchUsers(String projectId) async {
|
||||||
try {
|
try {
|
||||||
final response = await _httpService.get(
|
final response = await _httpService.get(
|
||||||
path: ApiEndpoints.getUsers.replaceAll('{projectUuid}', projectId),
|
path: ApiEndpoints.getUsers.replaceAll('{projectId}', projectId),
|
||||||
showServerMessage: true,
|
showServerMessage: true,
|
||||||
expectedResponseModel: (json) {
|
expectedResponseModel: (json) {
|
||||||
debugPrint('fetchUsers Response: $json');
|
debugPrint('fetchUsers Response: $json');
|
||||||
|
@ -95,8 +95,8 @@ abstract class ApiEndpoints {
|
|||||||
static const String inviteUser = '/invite-user';
|
static const String inviteUser = '/invite-user';
|
||||||
|
|
||||||
static const String checkEmail = '/invite-user/check-email';
|
static const String checkEmail = '/invite-user/check-email';
|
||||||
static const String getUsers = '/projects/{projectUuid}/user';
|
static const String getUsers = '/projects/{projectId}/user';
|
||||||
static const String getUserById = '/projects/{projectUuid}/user/{userUuid}';
|
static const String getUserById = '/projects/{projectId}/user/{userUuid}';
|
||||||
static const String editUser = '/invite-user/{inviteUserUuid}';
|
static const String editUser = '/invite-user/{inviteUserUuid}';
|
||||||
static const String deleteUser = '/invite-user/{inviteUserUuid}';
|
static const String deleteUser = '/invite-user/{inviteUserUuid}';
|
||||||
static const String changeUserStatus = '/invite-user/{invitedUserUuid}/disable';
|
static const String changeUserStatus = '/invite-user/{invitedUserUuid}/disable';
|
||||||
|
Reference in New Issue
Block a user