Player Career Stats Example

Use case - Retrieve Tom Brady Career Stats.

Field Selector:

{
    id,
    firstName,
    lastName,
    playerStats{careerStats{passingStats{attempts,completeions},rushingStats{attpempts,yardsPerAttempt}}}

}

Query:

{
    "$query":
        {
            "firstName" : "Tom",
            "lastName" : "Brady",
        }
}

Request:

GET  /persons?fs={id,firstName,lastName,playerStats{careerStats{passingStats{attempts,completeions},rushingStats{attpempts,yardsPerAttempt}}}}&s={"$query":{"firstName" : "Tom","lastName" : "Brady"}}

Response:

{
    "id": "525f365e-77fa-4e93-8413-f69705b19ade",
    "firstName": "Tom",
    "lastName" : "Brady",
    "playerStats": {
        "careerStats" : {
            "passingStats": {
                "attempts": 10000,
                "completions": 6800
            },
            "rushingStats": {
                "attempts": 1700,
                "yardsPerAttempt": 4
            }
        }
    }
}

To perform queries based on specific player career stats, use the /playerCareerStats endpoint instead.