FBiHBetting.Aggregator.WebApi

<back to all web services

GetOrganization

The following routes are available for this service:
GET/organizations
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using FBiHBetting.Aggregator.WebApi.ServiceModel;
using FBiHBetting.Aggregator.ReadModel;

namespace FBiHBetting.Aggregator.ReadModel
{
    public partial class ActivityInfo
    {
        public virtual string Code { get; set; }
        public virtual string Name { get; set; }
    }

    public partial class Address
    {
        public virtual string Street { get; set; }
        public virtual Reference City { get; set; }
        public virtual string PostalCode { get; set; }
    }

    public partial class Organization
    {
        public virtual string Id { get; set; }
        public virtual string Name { get; set; }
        public virtual string TaxAuthorityId { get; set; }
        public virtual Address Address { get; set; }
        public virtual ActivityInfo ActivityInfo { get; set; }
    }

    public partial class Reference
    {
        public virtual string Id { get; set; }
        public virtual string Value { get; set; }
    }

}

namespace FBiHBetting.Aggregator.WebApi.ServiceModel
{
    public partial class GetOrganization
    {
    }

}

C# GetOrganization DTOs

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

HTTP + JSV

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

GET /organizations HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	name: String,
	taxAuthorityId: String,
	address: 
	{
		street: String,
		city: 
		{
			id: String,
			value: String
		},
		postalCode: String
	},
	activityInfo: 
	{
		code: String,
		name: String
	}
}