| GET | /{Workspace}/TeamCurrentLocation |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Tracks;
using Field2Office.API.Model.Teams;
using Field2Office.API.Model.Users;
using Field2Office.API.Model;
namespace Field2Office.API.Model
{
public partial class Location
{
public virtual double y { get; set; }
public virtual double x { get; set; }
}
}
namespace Field2Office.API.Model.Teams
{
public partial class TeamLocation
{
public TeamLocation()
{
UserLocations = new List<UserCurrentLocation>{};
}
public virtual string ObjectId { get; set; }
public virtual List<UserCurrentLocation> UserLocations { get; set; }
}
}
namespace Field2Office.API.Model.Tracks
{
///<summary>
///GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.
///</summary>
public partial class TeamCurrentLocation
{
public TeamCurrentLocation()
{
TeamLocations = new List<TeamLocation>{};
}
public virtual string Workspace { get; set; }
public virtual List<TeamLocation> TeamLocations { get; set; }
}
}
namespace Field2Office.API.Model.Users
{
public partial class UserCurrentLocation
: Location
{
public virtual string ObjectId { get; set; }
public virtual string TimeStamp { 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