| POST | /trackinglog |
|---|
namespace sfgboxapi.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type TrackingLog() =
member val TenantsId:Int64 = new Int64() with get,set
member val AppUserId:Nullable<Int64> = new Nullable<Int64>() with get,set
member val MediaId:Nullable<Int64> = new Nullable<Int64>() with get,set
member val MediaPercentage:Nullable<Int64> = new Nullable<Int64>() with get,set
member val Score:Nullable<Int32> = new Nullable<Int32>() with get,set
member val MenuItems:String = null with get,set
member val Entities:String = null with get,set
member val IPAddress:String = null with get,set
member val Country:String = null with get,set
member val AccessDateTime:DateTime = new DateTime() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /trackinglog HTTP/1.1
Host: api.sfgtec.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"tenantsId":0,"appUserId":0,"mediaId":0,"mediaPercentage":0,"score":0,"menuItems":"String","entities":"String","ipAddress":"String","country":"String","accessDateTime":"\/Date(-62135596800000-0000)\/"}