FBiHBetting.Aggregator.WebApi

<back to all web services

FindLocations

The following routes are available for this service:
GET/locations
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 FindLocations() = 
        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# FindLocations DTOs

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

HTTP + CSV

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

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

{"data":[{"id":"String","int32Id":0,"name":"String","taxAuthorityId":"String","address":{"street":"String","city":{"id":"String","value":"String"},"postalCode":"String"},"status":0}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}