This project is an simple API for returning WNBA and NCAAW schedules! The API fetches data from external sources and provides access to the processed data.
- Node.js
- npm
- Clone the repository:
git clone https://github.com/lumamontes/wbb-games-api.git
- Navigate into the directory:
cd wbb-games-api
- Install the dependencies:
npm install
Start the local server:
npm run dev
-
GET /schedule
: Fetches the schedule for a given date and league. The league defaults to "ncaaw" and the date for today.Query parameters:
year
: The year of the schedule you want to fetch. Example:2022
.month
: The month of the schedule you want to fetch. Example:07
.day
: The day of the schedule you want to fetch. Example:15
.league
: The league of the schedule you want to fetch. It can be eitherncaaw
orwnba
, defaulting toncaaw
.
Example: GET /schedule?year=2022&month=07&day=15&league=ncaaw
Any changes/suggestions are welcome :)