{
"swagger": "2.0",
"info": {
"title": "MLB v3 RotoBaller Articles",
"version": "1.0"
},
"host": "api.sportsdata.io",
"basePath": "/v3/mlb/articles-rotoballer",
"schemes": [
"http",
"https"
],
"securityDefinitions": {
"apiKeyHeader": {
"type": "apiKey",
"name": "Ocp-Apim-Subscription-Key",
"in": "header"
},
"apiKeyQuery": {
"type": "apiKey",
"name": "key",
"in": "query"
}
},
"security": [
{
"apiKeyHeader": []
},
{
"apiKeyQuery": []
}
],
"paths": {
"/{format}/RotoBallerArticles": {
"get": {
"operationId": "RotoballerArticles",
"summary": "RotoBaller Articles",
"parameters": [
{
"name": "format",
"in": "path",
"description": "Desired response format. Valid entries are XML
or JSON
.",
"required": true,
"type": "string",
"default": "xml",
"enum": [
"xml",
"json"
]
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Article"
}
},
"examples": {
"application/json": "[\r\n {\r\n \"ArticleID\": 0,\r\n \"Title\": \"string\",\r\n \"Source\": \"string\",\r\n \"Updated\": \"string\",\r\n \"Content\": \"string\",\r\n \"Url\": \"string\",\r\n \"TermsOfUse\": \"string\",\r\n \"Author\": \"string\",\r\n \"Players\": [\r\n {\r\n \"PlayerID\": 0,\r\n \"Name\": \"string\",\r\n \"TeamID\": 0,\r\n \"Team\": \"string\",\r\n \"Position\": \"string\"\r\n }\r\n ]\r\n }\r\n]"
}
}
}
}
},
"/{format}/RotoBallerArticlesByDate/{date}": {
"get": {
"operationId": "RotoballerArticlesByDate",
"summary": "RotoBaller Articles By Date",
"parameters": [
{
"name": "format",
"in": "path",
"description": "Desired response format. Valid entries are XML
or JSON
.",
"required": true,
"type": "string",
"default": "xml",
"enum": [
"xml",
"json"
]
},
{
"name": "date",
"in": "path",
"description": "The date of the news.\n
Examples: 2017-JUL-31
, 2017-SEP-01
.",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Article"
}
},
"examples": {
"application/json": "[\r\n {\r\n \"ArticleID\": 0,\r\n \"Title\": \"string\",\r\n \"Source\": \"string\",\r\n \"Updated\": \"string\",\r\n \"Content\": \"string\",\r\n \"Url\": \"string\",\r\n \"TermsOfUse\": \"string\",\r\n \"Author\": \"string\",\r\n \"Players\": [\r\n {\r\n \"PlayerID\": 0,\r\n \"Name\": \"string\",\r\n \"TeamID\": 0,\r\n \"Team\": \"string\",\r\n \"Position\": \"string\"\r\n }\r\n ]\r\n }\r\n]"
}
}
}
}
},
"/{format}/RotoBallerArticlesByPlayerID/{playerid}": {
"get": {
"operationId": "RotoballerArticlesByPlayer",
"summary": "RotoBaller Articles By Player",
"parameters": [
{
"name": "format",
"in": "path",
"description": "Desired response format. Valid entries are XML
or JSON
.",
"required": true,
"type": "string",
"default": "xml",
"enum": [
"xml",
"json"
]
},
{
"name": "playerid",
"in": "path",
"description": "Unique FantasyData Player ID.\nExample:10000507
.",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Article"
}
},
"examples": {
"application/json": "[\r\n {\r\n \"ArticleID\": 0,\r\n \"Title\": \"string\",\r\n \"Source\": \"string\",\r\n \"Updated\": \"string\",\r\n \"Content\": \"string\",\r\n \"Url\": \"string\",\r\n \"TermsOfUse\": \"string\",\r\n \"Author\": \"string\",\r\n \"Players\": [\r\n {\r\n \"PlayerID\": 0,\r\n \"Name\": \"string\",\r\n \"TeamID\": 0,\r\n \"Team\": \"string\",\r\n \"Position\": \"string\"\r\n }\r\n ]\r\n }\r\n]"
}
}
}
}
}
},
"definitions": {
"Article": {
"properties": {
"ArticleID": {
"type": "integer",
"x-nullable": false
},
"Title": {
"type": "string",
"x-nullable": true
},
"Source": {
"type": "string",
"x-nullable": true
},
"Updated": {
"type": "string",
"x-nullable": true
},
"Content": {
"type": "string",
"x-nullable": true
},
"Url": {
"type": "string",
"x-nullable": true
},
"TermsOfUse": {
"type": "string",
"x-nullable": true
},
"Author": {
"type": "string",
"x-nullable": true
},
"Players": {
"type": "array",
"items": {
"$ref": "#/definitions/PlayerInfo"
}
}
}
},
"PlayerInfo": {
"properties": {
"PlayerID": {
"type": "integer",
"x-nullable": false
},
"Name": {
"type": "string",
"x-nullable": true
},
"TeamID": {
"type": "integer",
"x-nullable": true
},
"Team": {
"type": "string",
"x-nullable": true
},
"Position": {
"type": "string",
"x-nullable": true
}
}
}
},
"tags": []
}