FIBUdataServiceStack

<back to all web services

WaehrungskurseAbfragenRequest

The following routes are available for this service:
GET, POST/fibuscan/WaehrungsAbfragen
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 WaehrungskurseAbfragenRequest
    {
        public virtual DateTime? Von { get; set; }
        public virtual DateTime? Bis { get; set; }
        public virtual string Waehrung { get; set; }
    }

    public partial class WaehrungskurseAbfragenResponse
    {
        public WaehrungskurseAbfragenResponse()
        {
            ResultDictionary = new Dictionary<DateTime, waehrungskurse>{};
        }

        public virtual Dictionary<DateTime, waehrungskurse> ResultDictionary { get; set; }
    }

}

namespace FIBUdataServiceStack.ServiceModel.Models
{
    public partial class waehrungskurse
        : IPrimaryKey, IDel, ITableBase
    {
        public virtual long? id { get; set; }
        public virtual string iso4217 { get; set; }
        public virtual DateTime? datum { get; set; }
        public virtual decimal? betrag { get; set; }
        public virtual long? del { get; set; }
        public virtual DateTime? _erstellt { get; set; }
        public virtual DateTime? _aenderung { get; set; }
        [Ignore]
        public virtual long? PrimaryKey { get; set; }
    }

}

C# WaehrungskurseAbfragenRequest DTOs

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

HTTP + XML

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

POST /fibuscan/WaehrungsAbfragen HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<WaehrungskurseAbfragenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <Bis>0001-01-01T00:00:00</Bis>
  <Von>0001-01-01T00:00:00</Von>
  <Waehrung>String</Waehrung>
</WaehrungskurseAbfragenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<WaehrungskurseAbfragenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
  <ResultDictionary xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfdateTimewaehrungskursepVWdAnjX>
      <d2p1:Key>0001-01-01T00:00:00</d2p1:Key>
      <d2p1:Value xmlns:d4p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
        <d4p1:PrimaryKey>0</d4p1:PrimaryKey>
        <d4p1:_aenderung>0001-01-01T00:00:00</d4p1:_aenderung>
        <d4p1:_erstellt>0001-01-01T00:00:00</d4p1:_erstellt>
        <d4p1:betrag>0</d4p1:betrag>
        <d4p1:datum>0001-01-01T00:00:00</d4p1:datum>
        <d4p1:del>0</d4p1:del>
        <d4p1:id>0</d4p1:id>
        <d4p1:iso4217>String</d4p1:iso4217>
      </d2p1:Value>
    </d2p1:KeyValueOfdateTimewaehrungskursepVWdAnjX>
  </ResultDictionary>
</WaehrungskurseAbfragenResponse>