I would like to know how to make Include filter
request in android using retrofit. This is how the request looks like in loopback.
{
"filter": {
"counts":["agendas"],
"include":["meetingHall"]
}
}
This is how the response from the loopback server looks like
{
"count": 1,
"rows": [
{
"meetingId": "2010-5-8",
"titleEn": "horticulture follow up final report.",
"descriptionEn": "Management Letter Gewane Collage ኣፈጉባኤ ፎረም tigray.pdf ኣፈጉባኤ ፎረም tigray.pdf የፌደራል መንግስት የህግ አወጣጥ.pdf የፌደራል መንግስት የህግ አወጣጥ.pdf",
"titleAm": "horticulture follow up final report.",
"descriptionAm": ".የአካባቢ ደንና አየር ንብረት ለውጥ ኣፈጉባኤ ፎረም tigray.pdf ኣፈጉባኤ ፎረም tigray.pdf የፌደራል መንግስት የህግ አወጣጥ.pdf የፌደራል መንግስት የህግ አወጣጥ.pdf",
"status": "FINISHED",
"finishDetail": {
"attendanceNo": 0,
"remark": ""
},
"postponeDetail": null,
"cancelDetail": null,
"startDateGe": "2018-09-10T00:00:00.000Z",
"startDateEt": "2010-13-05",
"startTimeGe": {
"hour": 10,
"minute": 0
},
"startTimeEt": {
"hour": 10,
"minute": 0
},
"isArchive": false,
"regularMeetingDetail": {
"meetingNo": 8,
"round": 5,
"year": 2010
},
"seenStatus": 0,
"id": "5b926b5b9fab48001459004e",
"meetingHallId": "5b926a899fab480014590049",
"userGroupIds": [
"5b926a5b9fab480014590045",
"5b926a619fab480014590046"
],
"createdAt": "2018-09-07T12:13:15.880Z",
"updatedAt": "2018-09-18T12:43:28.577Z",
"meetingTypeId": "5b92668c9fab480014590021",
"agendasCount": 1,
"meetingHall": {
"nameEn": "በቋሚ ኮሚቴ አዳራሽ\t",
"nameAm": "በቋሚ ኮሚቴ አዳራሽ\t",
"id": "5b926a899fab480014590049",
"createdAt": "2018-09-07T12:09:45.776Z",
"updatedAt": "2018-09-07T12:09:45.776Z",
"name": "",
"description": ""
}
}
]
}
Because of that in the response other attributes have been serverd which normaly would take for more than just one request at the time... my Point is I would liek to know what my endpoint calling looks like for my retrofit in android.
sample api calls
@GET(ENDPOINT_MEETING)
@Headers(ApiHeader.API_AUTH_TYPE + HEADER_PARAM_SEPARATOR + ApiHeader.PROTECTED_API)
Observable<MeetingsResponse> loadMeetings(@Query("isArchive") Boolean isArchive);
reference for this kind of request can be found in the official page of loopback in here How can I make my request? should I use Query of any other properties? Thanks!