This commit is contained in:
@@ -63,6 +63,19 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
switch (enumkey)
|
||||
{
|
||||
case "datatypes":
|
||||
{
|
||||
//Iterate the enum and get the values
|
||||
Type t = typeof(AyaDataType);
|
||||
Enum.GetName(t, AyaDataType.NoType);
|
||||
foreach (var dt in Enum.GetValues(t))
|
||||
{
|
||||
ReturnList.Add(new NameIdItem() { Name = Enum.GetName(t, dt), Id = (long) dt });
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case "usertypes":
|
||||
{
|
||||
LocaleKeysToFetch.Add("UserTypesAdministrator");
|
||||
@@ -160,6 +173,7 @@ namespace AyaNova.Api.Controllers
|
||||
ret.Add(new KeyValuePair<string, string>("usertypes", "AyaNova user account types"));
|
||||
ret.Add(new KeyValuePair<string, string>("authorizationroles", "AyaNova user account role types"));
|
||||
ret.Add(new KeyValuePair<string, string>("AyaType", "All AyaNova object types, use the AyaTypeController route to fetch these"));
|
||||
ret.Add(new KeyValuePair<string, string>("datatypes", "Types of data used in AyaNova for display and formatting UI purposes"));
|
||||
|
||||
return Ok(ApiOkResponse.Response(ret, true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user