srapi

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2019 License: MIT Imports: 11 Imported by: 0

README

SRAPI

SRAPI is a Go-based API for the Sports Reference network of websites.

Current Version: 0.2.2 (Pre-Release)

Master Develop
Master Develop

Installation

Clone Repo
git clone git@github.com:mtslzr/srapi
cd srapi
Dependencies

NOTE: Database filename is currently hard-coded. This will change in the future.

cat srapi.sql | sqlite3 srapi.db
Build
go build -v --mod=vendor

Usage

Run
go run -v ./...
Starting server on localhost:5000...
Executable
./srapi
Starting server on localhost:5000...
Endpoints
Get Standings

Returns current standings. Requires two-letter ID for sport (e.g. bs for baseball).

GET /{sport}/standings
Get Teams

Returns all current teams. Requires two-letter ID for sport (e.g. bs for baseball).

GET /{sport}/teams
Get Years

Returns all available years. Requires two-letter ID for sport (e.g. bs for baseball).

GET /{sport}/years

Contribution

Testing
go test -v --mod=vendor ./...
Deployment

Coming soon...

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL