| POST | /{Workspace}/TsList |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.TimeSeries;
namespace Field2Office.API.Model.TimeSeries
{
///<summary>
///Returns a list of all time series objects based on an input set of owning id's and other input parameters. Start, End and ModifiedSince properties all use the UTC date time format = YYYY-MM-DDTHH:MM:SSZ
///</summary>
public partial class TsList
{
public TsList()
{
Items = new List<string>{};
}
public virtual string Workspace { get; set; }
public virtual List<string> Items { get; set; }
public virtual string Start { get; set; }
public virtual string End { get; set; }
public virtual string ModifiedSince { get; set; }
public virtual string SeriesType { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/TsList HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Workspace":"String","Items":["String"],"Start":"String","End":"String","ModifiedSince":"String","SeriesType":"String"}