Field Squared API Services

<back to all web services

OfflineLogin

The following routes are available for this service:
POST/{Workspace}/OfflilneLogin/{ObjectId}
namespace Field2Office.API.Model

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Location() = 
        member val y:Double = new Double() with get,set
        member val x:Double = new Double() with get,set

    [<AllowNullLiteral>]
    type OfflineLogin() = 
        member val ObjectId:String = null with get,set
        member val Workspace:String = null with get,set
        member val UserId:String = null with get,set
        member val Date:String = null with get,set
        member val Location:Location = null with get,set

F# OfflineLogin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Workspace}/OfflilneLogin/{ObjectId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ObjectId":"String","Workspace":"String","UserId":"String","Date":"String","Location":{"y":0,"x":0}}