All Verbs | /mobile/maps/layer |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Nwa.Model.Tipos.nwa.maps;
namespace Nwa.Model.Tipos.nwa.maps
{
public partial class GetLayerMapsRQ
{
public virtual string Layer { get; set; }
public virtual string Access { get; set; }
}
public partial class GetLayerMapsRS
{
public GetLayerMapsRS()
{
Data = new List<LayerData>{};
}
public virtual string Code { get; set; }
public virtual string ErrorMessage { get; set; }
public virtual List<LayerData> Data { get; set; }
}
public partial class LayerData
{
public virtual int code { get; set; }
public virtual string name { get; set; }
public virtual double latitude { get; set; }
public virtual double longitude { get; set; }
public virtual string complexinfo { 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 /mobile/maps/layer HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Layer":"String","Access":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Code":"String","ErrorMessage":"String","Data":[{"code":0,"name":"String","latitude":0,"longitude":0,"complexinfo":"String"}]}