ProfilePicture Examples

Use case : Retrieve Tom Brady with his profile picture

Field selector:

{
    firstName,
    lastName,
    picture
}

Query: Find players where display name is "Tom Brady".

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

Request: GET /persons?s={"$query":{"firstName":"Tom", "lastName" : "Brady"}}&fs={lastName,firstName,picture}}

Response payload:

 {
    "pager": {},
    "data": [
        {
            "firstName": "Tom",
            "lastName" : "Brady"
            "picture": {
                "id":"11046a7e-66e6-45db-8f80-9cf7778ebbcb",
                "largeImage" : {
                        "id": "51f4164f-9d9d-4276-8eba-9e0836e61ea0",
                        "type": "IMAGE",
                        "asset" : 
                        {
                            "id": "d2e2bf41-7227-4ee0-9f7b-b80a7d4bfcab",
                            "fileName" : "tomBradyProfilePicture_600_800.jpeg",
                            "title": "Tom Brady Profile Picture",
                            "height" : 600,
                            "width" : 800
                        }
                },
                "mediumImage" : {
                        "id": "f9eb4393-26d6-406f-b447-53d6bd833af9",
                        "type": "IMAGE",
                        "asset" : 
                        {
                            "id": "fc31f979-8879-4392-92f3-e3f75e10c028",
                            "fileName" : "tomBradyProfilePicture_300_400.jpeg",
                            "title": "Tom Brady Profile Picture",
                            "height" : 300,
                            "width" : 400
                        }
                },
                "smallImage" : {
                        "id": "21505b2f-4cad-4b23-a6a5-b0261a8c3224",
                        "type": "IMAGE",
                        "asset" : 
                        {
                            "id": "36e050a7-bc7d-463a-a4ab-f92a408847b5",
                            "fileName" : "tomBradyProfilePicture_150_200.jpeg",
                            "title": "Tom Brady Profile Picture",
                            "height" : 150,
                            "width" : 200
                        }
                }
            }
        }
    ]
 }