FBiHBetting.Aggregator.WebApi

<back to all web services

UpdateBettor

The following routes are available for this service:
POST/bettors/update
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;

namespace FBiHBetting.Aggregator.WebApi.ServiceModel
{
    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 Reference
    {
        public virtual string Id { get; set; }
        public virtual string Value { get; set; }
    }

    public partial class UpdateBettor
    {
        public virtual string Id { get; set; }
        public virtual string FullName { get; set; }
        public virtual DateTime DateOfBirth { get; set; }
        public virtual Address BettorAddress { get; set; }
        public virtual string Email { get; set; }
        public virtual string PhoneNumber { get; set; }
        public virtual string Username { get; set; }
        public virtual string BankTransactionAccountNumber { get; set; }
    }

}

C# UpdateBettor DTOs

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

HTTP + OTHER

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

POST /bettors/update HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","fullName":"String","dateOfBirth":"0001-01-01T00:00:00.0000000Z","bettorAddress":{"street":"String","city":{"id":"String","value":"String"},"postalCode":"String"},"email":"String","phoneNumber":"String","username":"String","bankTransactionAccountNumber":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}