This commit is contained in:
@@ -31,6 +31,7 @@ namespace raven_integration
|
||||
w1.active = true;
|
||||
w1.roles = 0;
|
||||
w1.notes = "The quick brown fox jumped over the six lazy dogs!";
|
||||
w1.customFields = Util.GenerateCustomFieldsJsonString("MyCustomText in Custom 1 field");
|
||||
|
||||
//Tags
|
||||
dynamic dTagsArray = new JArray();
|
||||
@@ -54,6 +55,7 @@ namespace raven_integration
|
||||
w2.roles = 0;
|
||||
w2.notes = "What is the frequency Kenneth?";
|
||||
w2.tags = dTagsArray;
|
||||
w2.customFields = Util.GenerateCustomFieldsJsonString("MyCustomText in Custom 1 field");
|
||||
|
||||
ApiResponse r2 = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w2.ToString());
|
||||
Util.ValidateDataReturnResponseOk(r2);
|
||||
@@ -184,6 +186,10 @@ namespace raven_integration
|
||||
w2.active = true;
|
||||
w2.roles = 0;
|
||||
|
||||
w2.notes="blah";
|
||||
w2.customFields = Util.GenerateCustomFieldsJsonString("Meh1");
|
||||
|
||||
|
||||
ApiResponse r2 = await Util.PostAsync("Widget", await Util.GetTokenAsync("manager", "l3tm3in"), w2.ToString());
|
||||
Util.ValidateDataReturnResponseOk(r2);
|
||||
long w2Id = r2.ObjectResponse["data"]["id"].Value<long>();
|
||||
|
||||
Reference in New Issue
Block a user