Field Squared API Services

<back to all web services

XWorkspaceList

The following routes are available for this service:
GET/{Workspace}/XWorkspaceList/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Workspaces;
using Field2Office.API.Model;

namespace Field2Office.API.Model
{
    public partial class Address
    {
        public virtual string Street { get; set; }
        public virtual string Unit { get; set; }
        public virtual string City { get; set; }
        public virtual string State { get; set; }
        public virtual string Zip { get; set; }
        public virtual string ContactTitle { get; set; }
        public virtual string ContactName { get; set; }
        public virtual string ContactPhone { get; set; }
        public virtual string ContactEmail { get; set; }
        public virtual Location Location { get; set; }
        public virtual string SiteName { get; set; }
        public virtual bool GeocodeFailed { get; set; }
        public virtual string Country { get; set; }
    }

    public partial class Location
    {
        public virtual double y { get; set; }
        public virtual double x { get; set; }
    }

}

namespace Field2Office.API.Model.Workspaces
{
    public partial class XWorkspace
    {
        public virtual string ObjectId { get; set; }
        public virtual string VersionId { get; set; }
        public virtual string Name { get; set; }
        public virtual string CompanyName { get; set; }
        public virtual Address CompanyAddress { get; set; }
        public virtual string FormTemplates { get; set; }
        public virtual bool AssignTaskToWorkspace { get; set; }
        public virtual bool AssignTaskToUser { get; set; }
        public virtual bool DeleteTask { get; set; }
    }

    public partial class XWorkspaceList
    {
        public XWorkspaceList()
        {
            XWorkspaces = new List<XWorkspace>{};
        }

        public virtual string Workspace { get; set; }
        public virtual string DateGenerated { get; set; }
        public virtual List<XWorkspace> XWorkspaces { get; set; }
    }

}

C# XWorkspaceList 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.

GET /{Workspace}/XWorkspaceList/ HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv