| GET, POST | /fibuscan/Onlinehandel/WaehrungsListe |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using FIBUdataServiceStack.ServiceModel.Messages;
using FIBUdataServiceStack.ServiceModel.Models;
namespace FIBUdataServiceStack.ServiceModel.Messages
{
public partial class WaehrungsListeRequest
{
}
public partial class WaehrungsListeResponse
{
public WaehrungsListeResponse()
{
Liste = new List<waehrung>{};
}
public virtual List<waehrung> Liste { get; set; }
}
}
namespace FIBUdataServiceStack.ServiceModel.Models
{
public partial class waehrung
: IPrimaryKey, ITableBase
{
public virtual long? id { get; set; }
public virtual string iso4217 { get; set; }
public virtual string iso4217num { get; set; }
public virtual string bezeichnung { get; set; }
public virtual DateTime? _erstellt { get; set; }
public virtual DateTime? _aenderung { get; set; }
public virtual string symbol { get; set; }
public virtual int prio { get; set; }
[Ignore]
public virtual long? PrimaryKey { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/WaehrungsListe HTTP/1.1
Host: ws4.fibudata.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Liste:
[
{
id: 0,
iso4217: String,
iso4217num: String,
bezeichnung: String,
_erstellt: 0001-01-01,
_aenderung: 0001-01-01,
symbol: String,
prio: 0,
PrimaryKey: 0
}
]
}