C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
ExtensionMethods.IAPIResource_WithDataEndpoint.cs
Go to the documentation of this file.
3
4namespace AnalyzeRe
5{
7 public static partial class ExtensionMethods
8 {
15 public static T Post<T>(this T obj, string csv_data, int? timeout = null,
18 {
19 T result = obj.Post(timeout: timeout);
20 result.data.UploadString(csv_data, upload_parameters);
21 // Uploading data can change certain resources (like LossSets, which acquire a new
22 // server generated 'profile' property), so we must return a fresh GET of them.
23 return result.Get();
24 }
25 }
26}
Describes a collection of resources which can be listed.
Provides the REST request methods available to data endpoints.
static T Post< T >(this T obj, string csv_data, int? timeout=null, Parameters upload_parameters=null)
POST this Resource, along with it's CSV data.
Parameters to be used in a Large Data Upload operation.
Definition Parameters.cs:7
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...