| GET | /{Workspace}/TeamCurrentLocation |
|---|
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 UserCurrentLocation() =
inherit Location()
member val ObjectId:String = null with get,set
member val TimeStamp:String = null with get,set
[<AllowNullLiteral>]
type TeamLocation() =
member val ObjectId:String = null with get,set
member val UserLocations:ResizeArray<UserCurrentLocation> = new ResizeArray<UserCurrentLocation>() with get,set
///<summary>
///GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.
///</summary>
[<AllowNullLiteral>]
type TeamCurrentLocation() =
member val Workspace:String = null with get,set
member val TeamLocations:ResizeArray<TeamLocation> = new ResizeArray<TeamLocation>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/TeamCurrentLocation HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv