mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
added api for space management
This commit is contained in:
@ -12,7 +12,7 @@ class AppRoutes {
|
||||
return [
|
||||
GoRoute(
|
||||
path: RoutesConst.auth,
|
||||
builder: (context, state) => SpaceManagementPage(),
|
||||
builder: (context, state) => const HomePage(),
|
||||
),
|
||||
GoRoute(
|
||||
path: RoutesConst.home,
|
||||
@ -32,7 +32,7 @@ class AppRoutes {
|
||||
),
|
||||
GoRoute(
|
||||
path: RoutesConst.spacesManagementPage,
|
||||
builder: (context, state) => SpaceManagementPage()),
|
||||
builder: (context, state) => SpaceManagementPage()),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
abstract class ApiEndpoints {
|
||||
static const String baseUrl = 'https://syncrow-dev.azurewebsites.net';
|
||||
// static const String baseUrl = 'http://100.107.182.63:4001'; //Localhost
|
||||
static const String baseLocalUrl = 'http://localhost:4001'; //Localhost
|
||||
|
||||
//https://syncrow-staging.azurewebsites.net
|
||||
////////////////////////////////////// Authentication ///////////////////////////////
|
||||
static const String signUp = '$baseUrl/authentication/user/signup';
|
||||
@ -38,4 +39,31 @@ abstract class ApiEndpoints {
|
||||
|
||||
static const String getDeviceLogs =
|
||||
'$baseUrl/device/report-logs/{uuid}?code={code}';
|
||||
|
||||
// Space Module
|
||||
static const String createSpace =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces';
|
||||
static const String listSpaces =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces';
|
||||
static const String deleteSpace =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces/{spaceId}';
|
||||
static const String updateSpace =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces/{spaceId}';
|
||||
static const String getSpace =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces/{spaceId}';
|
||||
static const String getSpaceHierarchy =
|
||||
'$baseLocalUrl/communities/{communityId}/spaces/hierarchy';
|
||||
|
||||
// Community Module
|
||||
static const String createCommunity = '$baseLocalUrl/communities';
|
||||
static const String getCommunityList = '$baseLocalUrl/communities';
|
||||
static const String getCommunityById =
|
||||
'$baseLocalUrl/communities/{communityId}';
|
||||
static const String updateCommunity =
|
||||
'$baseLocalUrl/communities/{communityId}';
|
||||
static const String deleteCommunity =
|
||||
'$baseLocalUrl/communities/{communityId}';
|
||||
static const String getUserCommunities =
|
||||
'$baseLocalUrl/communities/user/{userUuid}';
|
||||
static const String createUserCommunity = '$baseLocalUrl/communities/user';
|
||||
}
|
||||
|
Reference in New Issue
Block a user