-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Action): Add bloodlinealpha API Wrapper
Adds BloodLineAlpha api wrapper for game-logs endpoint and removes the NHL Web API endpoint for GPT Actions. Used to improve accuracy for game-log responses and results. Part of #2
- Loading branch information
1 parent
f415948
commit 7cdd9f6
Showing
3 changed files
with
94 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "BloodLineAlpha NHL GPT API", | ||
"version": "1.0.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://bloodlinealpha.com", | ||
"description": "GPT Action Builder API Production Server" | ||
} | ||
], | ||
"paths": { | ||
"/nhl-GPT/api/game-log": { | ||
"get": { | ||
"operationId": "get_NHL_Player_game_logs", | ||
"summary": "Get game logs", | ||
"description": "Retrieve game log data for a specific player, season, and game type.", | ||
"parameters": [ | ||
{ | ||
"name": "playerId", | ||
"in": "query", | ||
"required": true, | ||
"description": "The ID of the player.", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "seasonId", | ||
"in": "query", | ||
"required": true, | ||
"description": "The ID of the season.", | ||
"schema": { | ||
"type": "string", | ||
"default": "20232024" | ||
} | ||
}, | ||
{ | ||
"name": "gameTypeId", | ||
"in": "query", | ||
"required": true, | ||
"description": "The ID of the game type. gameTypeId=2 is regular season, gameTypeId=3 is playoffs", | ||
"schema": { | ||
"type": "string", | ||
"default": "2" | ||
} | ||
}, | ||
{ | ||
"name": "properties", | ||
"in": "query", | ||
"required": false, | ||
"description": "Comma-separated list of properties to include in the response. Use when trying to find specific stat values. Returns all properties, if not used. Possible values are gameId, goal, assists, commonName, opponentCommonName, points, plusMinus, powerPlayGoals, powerPlayPoints, gameWinningGoals, otGoals, shots, shifts, shorthandedGoals, shorthandedPoints, pim, toi.", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "limit", | ||
"in": "query", | ||
"required": false, | ||
"description": "Limit the number of game logs returned. Order of game logs is from most recent to least recent. Can be used with the isAggregate query parameter.", | ||
"schema": { | ||
"type": "integer", | ||
"default": 82 | ||
} | ||
}, | ||
{ | ||
"name": "isAggregate", | ||
"in": "query", | ||
"required": true, | ||
"description": "Summarizes values from many game logs into a gamelog. If true, this will aggregate game log values for the following properties goals, assists, points, plusMinus, powerPlayGoals, powerPlayPoints, gameWinningGoals, otGoals, shots, shifts, shorthandedGoals, shorthandedPoints, pim, toi. If false, the game logs will be returned without aggregation.", | ||
"schema": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
}, | ||
{ | ||
"name": "isAscending", | ||
"in": "query", | ||
"required": true, | ||
"description": "Changes the order of the game logs, default behaviour is descending. If true, the game logs will be returned from least recent to most recent. If false, the game logs will be returned from most recent to least recent.", | ||
"schema": { | ||
"type": "boolean", | ||
"default": false | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters