FBiHBetting.Aggregator.WebApi

<back to all web services

FindBettors

The following routes are available for this service:
GET/bettors
namespace FBiHBetting.Aggregator.WebApi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type FindBettors() = 
        member val Id:String = null with get,set
        member val Qry:String = null with get,set
        member val CurrentPage:Int32 = new Int32() with get,set
        member val PageSize:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type ProductProvider() = 
        member val Id:String = null with get,set
        member val Name:String = null with get,set

    [<AllowNullLiteral>]
    type PaginatedResult<T>() = 
        member val Data:ResizeArray<ProductProvider> = null with get,set
        member val CurrentPage:Int32 = new Int32() with get,set
        member val PageSize:Int32 = new Int32() with get,set
        member val TotalItems:Int64 = new Int64() with get,set
        member val TotalPages:Int64 = new Int64() with get,set

F# FindBettors DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /bettors HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":[{"id":"String","organizationTaxAuthorityId":"String","fullName":"String","dateOfBirth":"0001-01-01T00:00:00.0000000Z","jmbg":"String","bettorAddress":{"street":"String","city":{"id":"String","value":"String"},"postalCode":"String"},"email":"String","phoneNumber":"String","username":"String","bankTransactionAccountNumber":"String","activationDate":"0001-01-01T00:00:00.0000000Z","bettorType":0}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}