stats-api

module
v0.0.0-...-d569a9f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT

README

MLB logo

Welcome to the MLB stats api 👋

Using go version 1.20 Go Report Card godoc

Run Application

go mod download
go run cmd/server/main.go

Run Tests

go test ./...

Build and Push Dockerfile

docker build -t {dockerhub_user}/stats-api .
docker push {dockerhub_user}/stats-api:latest

Usage

Currently the only supported API call is a GET to /api/v1/schedule which accepts two query params date (required) and teamID (optional) where date is in YYYY-MM-DD format and teamID is a number/int.

Local Example:

http://127.0.0.1:4000/api/v1/schedule?date=2022-07-21&teamID=147

Live Example:

http://134.209.123.132:4000/api/v1/schedule?date=2022-07-21&teamID=147

Take Home Notes

notes.txt

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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