Field Squared API Services

<back to all web services

WorkspaceOptions

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

namespace Field2Office.API.Model.Workspaces
{
    public partial class Country
    {
        public virtual string Name { get; set; }
        public virtual string Id { get; set; }
    }

    public partial class TimeZone
    {
        public virtual string Name { get; set; }
        public virtual string Id { get; set; }
        public virtual string IanaId { get; set; }
        public virtual string Abbreviation { get; set; }
    }

    public partial class UserTypeOption
    {
        public virtual string Name { get; set; }
        public virtual string Id { get; set; }
    }

    public partial class WorkspaceOptions
    {
        public WorkspaceOptions()
        {
            TimeZones = new List<TimeZone>{};
            Countries = new List<Country>{};
            UserTypes = new List<UserTypeOption>{};
        }

        public virtual string Workspace { get; set; }
        public virtual List<TimeZone> TimeZones { get; set; }
        public virtual List<Country> Countries { get; set; }
        public virtual List<UserTypeOption> UserTypes { get; set; }
    }

}

C# WorkspaceOptions DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /{Workspace}/WorkspaceOptions/ HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json