Using the $expandOData operator , you can specify that the query returns projected fields from other lists and search values.
The following REST endpoint:
/_api/web/lists/getbytitle('Pages')/items(1)?$select=Author/Name,Author/Title&$expand=Author/Id
returns Titleand Namea column Authorin the pages list
{
"d": {
"__metadata": {
"id": "63b9e943-6398-4b6d-acc9-fc4f554f78df",
"uri": "https://contoso.sharepoint.com/_api/Web/Lists(guid'be43ccf2-5ca7-4957-bf81-7cdc86744d9b')/Items(1)",
"etag": "\"6\"",
"type": "SP.Data.PagesItem"
},
"Author": {
"__metadata": {
"id": "8e4ad44e-f6f0-4dcc-92c6-78dc3d2c68af",
"type": "SP.Data.UserInfoItem"
},
"Name": "i:0#.f|membership|username@contoso.onmicrosoft.com",
"Title": "John Doe"
}
}
}
source
share