Field Squared API Services

<back to all web services

TeamCurrentLocation

GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.

The following routes are available for this service:
GET/{Workspace}/TeamCurrentLocation
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Tracks
Imports Field2Office.API.Model.Teams
Imports Field2Office.API.Model.Users
Imports Field2Office.API.Model

Namespace Global

    Namespace Field2Office.API.Model

        Public Partial Class Location
            Public Overridable Property y As Double
            Public Overridable Property x As Double
        End Class
    End Namespace

    Namespace Field2Office.API.Model.Teams

        Public Partial Class TeamLocation
            Public Sub New()
                UserLocations = New List(Of UserCurrentLocation)
            End Sub

            Public Overridable Property ObjectId As String
            Public Overridable Property UserLocations As List(Of UserCurrentLocation)
        End Class
    End Namespace

    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 Sub New()
                TeamLocations = New List(Of TeamLocation)
            End Sub

            Public Overridable Property Workspace As String
            Public Overridable Property TeamLocations As List(Of TeamLocation)
        End Class
    End Namespace

    Namespace Field2Office.API.Model.Users

        Public Partial Class UserCurrentLocation
            Inherits Location
            Public Overridable Property ObjectId As String
            Public Overridable Property TimeStamp As String
        End Class
    End Namespace
End Namespace

VB.NET TeamCurrentLocation DTOs

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

HTTP + 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