Greyhounds.WebApi

<back to all web services

FindRoundResults

The following routes are available for this service:
All Verbs/rounds/results
import 'package:servicestack/servicestack.dart';

class FindRoundResults implements IConvertible
{
    String? roundId;
    String? filter;

    FindRoundResults({this.roundId,this.filter});
    FindRoundResults.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        roundId = json['roundId'];
        filter = json['filter'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'roundId': roundId,
        'filter': filter
    };

    getTypeName() => "FindRoundResults";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'grh1.api.bettor.webhop.biz', types: <String, TypeInfo> {
    'FindRoundResults': TypeInfo(TypeOf.Class, create:() => FindRoundResults()),
});

Dart FindRoundResults 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.

POST /rounds/results HTTP/1.1 
Host: grh1.api.bettor.webhop.biz 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"roundId":"String","filter":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"id":"String","sequence":"String","createdAt":"0001-01-01T00:00:00.0000000Z"}]