mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 09:24:54 +00:00
community controller
This commit is contained in:
@ -8,4 +8,34 @@ export class ControllerRoute {
|
||||
'Retrieve the list of all regions registered in Syncrow.';
|
||||
};
|
||||
};
|
||||
|
||||
static COMMUNITY = class {
|
||||
public static readonly ROUTE = 'communities';
|
||||
static ACTIONS = class {
|
||||
public static readonly GET_COMMUNITY_BY_ID_SUMMARY =
|
||||
'Get community by community id';
|
||||
|
||||
public static readonly GET_COMMUNITY_BY_ID_DESCRIPTION =
|
||||
'Get community by community id - ( [a-zA-Z0-9]{10} )';
|
||||
|
||||
public static readonly LIST_COMMUNITY_SUMMARY = 'Get list of community';
|
||||
|
||||
public static readonly LIST_COMMUNITY_DESCRIPTION =
|
||||
'Return a list of community';
|
||||
public static readonly UPDATE_COMMUNITY_SUMMARY = 'Update community';
|
||||
|
||||
public static readonly UPDATE_COMMUNITY_DESCRIPTION =
|
||||
'Update community in the database and return updated community';
|
||||
|
||||
public static readonly DELETE_COMMUNITY_SUMMARY = 'Delete community';
|
||||
|
||||
public static readonly DELETE_COMMUNITY_DESCRIPTION =
|
||||
'Delete community matching by community id';
|
||||
|
||||
public static readonly CREATE_COMMUNITY_SUMMARY = 'Create community';
|
||||
|
||||
public static readonly CREATE_COMMUNITY_DESCRIPTION =
|
||||
'Create community in the database and return in model';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user