racket_reel_matches 0.3.1

SDKdartflutter
Platformandroidioswindowslinuxmacos

Client for interacting with the Matches service for Racket Reel.

racket_reel_matches

A web services for configuring and scoring tennis matches.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 0.3.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen For more information, please visit https://github.com/tom-elvidge

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  racket_reel_matches:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  racket_reel_matches:
    path: /path/to/racket_reel_matches

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:racket_reel_matches/api.dart';


final api_instance = MatchesApi();
final pageSize = 56; // int | The maximum number of matches to include on a page.
final pageNumber = 56; // int | The page of matches to get.
final orderBy = ; // MatchesOrderByEnum | How to order the collection of matches.

try {
    final result = api_instance.apiV1MatchesGet(pageSize, pageNumber, orderBy);
    print(result);
} catch (e) {
    print('Exception when calling MatchesApi->apiV1MatchesGet: $e\n');
}

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
MatchesApiapiV1MatchesGetGET /api/v1/matchesGet a page of matches from the collection of all ordered matches.
MatchesApiapiV1MatchesMatchIdGetGET /api/v1/matches/{matchId}Get the match with id.
MatchesApiapiV1MatchesPostPOST /api/v1/matchesCreate a new match from a configuration.
StatesApiapiV1MatchesMatchIdStatesLatestDeleteDELETE /api/v1/matches/{matchId}/states/latestDelete the latest state from the match with id matchId.
StatesApiapiV1MatchesMatchIdStatesLatestGetGET /api/v1/matches/{matchId}/states/latestGet the latest state from the match with id matchId.
StatesApiapiV1MatchesMatchIdStatesLatestPutPUT /api/v1/matches/{matchId}/states/latestUpdate the latest state from the match with id matchId.
StatesApiapiV1MatchesMatchIdStatesPostPOST /api/v1/matches/{matchId}/statesCreate a new match state when a participant scores a point.
StatesApiapiV1MatchesMatchIdStatesStateIndexGetGET /api/v1/matches/{matchId}/states/{stateIndex}Get the state with index stateIndex from the match with id matchId.
StatesApiapiV1MatchesMatchIdStatesStateIndexPutPUT /api/v1/matches/{matchId}/states/{stateIndex}Update the state with index stateIndex from the match with id matchId.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

tom@racketreel.com