POST api/Home/GetData
Request Information
URI Parameters
None.
Body Parameters
HomeFilterVmName | Description | Type | Additional information |
---|---|---|---|
NewsCnt | integer |
None. |
|
AdvocateCnt | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "newsCnt": 1, "advocateCnt": 1 }
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
HomeDataVmName | Description | Type | Additional information |
---|---|---|---|
Banner | Collection of Banner |
None. |
|
News | Collection of HomeNewsVm |
None. |
|
Crds | Collection of HomeNewsVm |
None. |
|
Slogan | Slogan |
None. |
|
About | About |
None. |
|
DigData | Collection of DigDataVm |
None. |
|
QuestionAndAnswer | Dictionary of string [key] and Collection of HomeQAndAVm [value] |
None. |
|
Photo | Collection of HomePhotoVm |
None. |
Response Formats
application/json, text/json
Sample:
{ "banner": [ { "subject": "sample string 1", "imageUrl": "sample string 2", "linkUrl": "sample string 3" }, { "subject": "sample string 1", "imageUrl": "sample string 2", "linkUrl": "sample string 3" } ], "news": [ { "key": "sample string 1", "subject": "sample string 2", "imageUrl": "sample string 3", "date": "2024-11-21T14:20:48.07624+08:00" }, { "key": "sample string 1", "subject": "sample string 2", "imageUrl": "sample string 3", "date": "2024-11-21T14:20:48.07624+08:00" } ], "crds": [ { "key": "sample string 1", "subject": "sample string 2", "imageUrl": "sample string 3", "date": "2024-11-21T14:20:48.07624+08:00" }, { "key": "sample string 1", "subject": "sample string 2", "imageUrl": "sample string 3", "date": "2024-11-21T14:20:48.07624+08:00" } ], "slogan": { "subject": "sample string 1", "context": "sample string 2" }, "about": { "section": "sample string 1", "politicalParty": "sample string 2", "experience": "sample string 3", "politicalGoals": "sample string 4", "other": "sample string 5", "pic": "sample string 6" }, "digData": [ { "subject": "sample string 1", "value": 1.0 }, { "subject": "sample string 1", "value": 1.0 } ], "questionAndAnswer": { "sample string 1": [ { "key": "sample string 1", "subject": "sample string 2" }, { "key": "sample string 1", "subject": "sample string 2" } ], "sample string 2": [ { "key": "sample string 1", "subject": "sample string 2" }, { "key": "sample string 1", "subject": "sample string 2" } ] }, "photo": [ { "key": "sample string 1", "photoName": "sample string 2", "coverImage": "sample string 3", "activityDate": "2024-11-21T14:20:48.07624+08:00" }, { "key": "sample string 1", "photoName": "sample string 2", "coverImage": "sample string 3", "activityDate": "2024-11-21T14:20:48.07624+08:00" } ] }