Changed api response "result" to "data"

This commit is contained in:
2018-11-07 16:05:21 +00:00
parent e2330974f6
commit 6c7376f2e8
27 changed files with 227 additions and 270 deletions

View File

@@ -45,7 +45,7 @@ namespace raven_integration
//Put this in when having concurrency issue during auth and old style dl token creation during login
ValidateDataReturnResponseOk(a);
authDict[login] = a.ObjectResponse["result"]["token"].Value<string>();
authDict[login] = a.ObjectResponse["data"]["token"].Value<string>();
}
return authDict[login];
}
@@ -253,7 +253,7 @@ namespace raven_integration
}
a.ObjectResponse["error"].Should().BeNull("because there should not be an error on an api call, error was: {0}", ErrorMessage);
a.ObjectResponse["result"].Should().NotBeNull("A result should be returned");
a.ObjectResponse["data"].Should().NotBeNull("A result should be returned");
}
public static void ValidateNoErrorInResponse(ApiResponse a)