1.1.2 • Published 8 years ago

rx-ballpark-services v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

#rx-ballpark-services

Simple set of services used to fetch basic information and weather data about Major Baseball Parks.

Weather Data is provided by Weather Company Data for IBM Bluemix

Usage

###Initialize

import RxBallparkServices from 'rx-ballpark-services';

const rbs = RxBallparkServices({
  weather: {
    apiRoot: <bluemix-weather-api-url>
  }
});

###Initialize (try mode)

Bluemix account 'not required'

Weather Company Data for IBM Bluemix 'not required'

import RxBallparkServices from 'rx-ballpark-services';

const rbs = RxBallparkServices({
  weather: {
    apiRoot: 'dummy',
    useMockData: true
  }
});

Apis

Fetch all ballparks with Weather

rbs.BallparksWeatherService
      .all()
      .subscribe(r => /* do something */, /* handle error */);

Fetch a ballpark by id

rbs.BallparksService
  .byId(req.params.id)
  .subscribe(r => /* do something */, /* handle error */);
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.0

8 years ago