FBiHBetting.Aggregator.WebApi

<back to all web services

FindProductInstances

The following routes are available for this service:
GET/productInstances
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 FindProductInstances() = 
        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# FindProductInstances 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 /productInstances 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","name":"String","product":{"id":"String","value":"String"}}],"currentPage":0,"pageSize":0,"totalItems":0,"totalPages":0}