diff --git a/README.md b/README.md index 83529dd..075b3f3 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ Use the [configuration.json](configuration.json) to build your GPT. # Actions - Add the [nhlAPI.json](nhlAPI.json) and [nhlStandingAPI.json](nhlStandingAPI.json) to the Actions section of your GPT + Add the [nhlAPI.json](nhlAPI.json), [nhlStandingAPI.json](nhlStandingAPI.json), [bloodlinealpha.json](bloodlinealpha.json) to the Actions section of your GPT # Save Save your GPT and it should be ready to go. Ask it questions about players, goalies and teams. It can retrieve current season data and past seasons back to 1917-1918. Review the OpenAPI json for more a mor ecomprehensive understanding of what it can do! # Examples - Linkedin Post: https://www.linkedin.com/pulse/syntax-sunday-gpt-actions-kade-halabuza-vv7wf + Linkedin Post: https://www.linkedin.com/pulse/syntax-sunday-gpt-actions-kade-halabuza-vv7wf Shared Chats: - #1: https://chat.openai.com/share/ec150c92-a200-42b9-a56b-eb95435f925f diff --git a/bloodlinealpha.json b/bloodlinealpha.json new file mode 100644 index 0000000..e62d7d2 --- /dev/null +++ b/bloodlinealpha.json @@ -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 + } + } + ] + } + } + } + } \ No newline at end of file diff --git a/nhlWebAPI.json b/nhlWebAPI.json index 6992755..e3b73da 100644 --- a/nhlWebAPI.json +++ b/nhlWebAPI.json @@ -54,44 +54,6 @@ } ] } - }, - "/v1/player/{playerId}/game-log/{seasonId}/{gameTypeId}": { - "get": { - "operationId": "NHL_Player_game_logs", - "summary": "Gets NHL players detailed game logs for regular season and playoffs.", - "description": "Retrieves NHL players detailed game by game stats using their playerId which must first be found using the operationId: NHL_players. Use the gameLog property to find the game by game stats for a given season.", - "parameters": [ - { - "name": "playerId", - "description": "This must be first obtained from the operationId: NHL_players and then used here.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "seasonId", - "description": "Use the current seasonId. Ask for the current seasonId if unsure.", - "in": "path", - "required": true, - "schema": { - "type": "string", - "default": "20232024" - } - }, - { - "name": "gameTypeId", - "description": "gameTypeId=2 is regular season, gameTypeId=3 is playoffs. Assume regular season if unsure or ask.", - "in": "path", - "required": true, - "schema": { - "type": "string", - "default": "2" - } - } - ] - } } } } \ No newline at end of file