This commit is contained in:
28
util.cs
28
util.cs
@@ -29,7 +29,7 @@ namespace raven_integration
|
||||
{
|
||||
//#######################################################################################################
|
||||
public static string API_BASE_URL = "http://localhost:7575/api/v8/";
|
||||
// public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
|
||||
// public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
|
||||
|
||||
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
|
||||
//#######################################################################################################
|
||||
@@ -586,5 +586,31 @@ namespace raven_integration
|
||||
return dCustomField.ToString();
|
||||
}
|
||||
|
||||
|
||||
public static string BuildDataListRequest(dynamic dFilter, dynamic dSort=null, int limit = 999, int offset = 0, bool mini = false, string dataListKey = "TestWidgetDataList")
|
||||
{
|
||||
/*
|
||||
{
|
||||
"offset": 0,
|
||||
"limit": 5,
|
||||
"mini": false,
|
||||
"dataListKey": "TestWidgetDataList",
|
||||
"filterJson": "",
|
||||
"sortJson": ""
|
||||
}
|
||||
*/
|
||||
dynamic d = new JObject();
|
||||
d.offset = offset;
|
||||
d.limit = limit;
|
||||
d.mini = mini;
|
||||
d.dataListKey = dataListKey;
|
||||
d.filterJson = dFilter.ToString();
|
||||
if (dSort != null)
|
||||
d.sortJson = dSort.ToString();
|
||||
return d.ToString();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
|
||||
Reference in New Issue
Block a user