GET api/NewsWebAPI/GetAllNews
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of NewsViewModelName | Description | Type | Additional information |
---|---|---|---|
pk_news_id | integer |
None. |
|
title | string |
Required |
|
title_hausa | string |
Required |
|
image_icon | string |
Required |
|
description | string |
Required |
|
description_hausa | string |
Required |
|
is_bol_kan | boolean |
None. |
|
create_dt | date |
None. |
|
modified_dt | date |
None. |
|
is_top_story | boolean |
None. |
|
news_type | integer |
None. |
|
Selected | boolean |
None. |
|
pkTopstoryID | integer |
None. |
|
serialrNo | integer |
None. |
|
isThumbnailSelected | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "pk_news_id": 1, "title": "sample string 2", "title_hausa": "sample string 3", "image_icon": "sample string 4", "description": "sample string 5", "description_hausa": "sample string 6", "is_bol_kan": true, "create_dt": "2025-06-17T19:37:47.0299846+01:00", "modified_dt": "2025-06-17T19:37:47.0299846+01:00", "is_top_story": true, "news_type": 9, "Selected": true, "pkTopstoryID": 11, "serialrNo": 12, "isThumbnailSelected": true }, { "pk_news_id": 1, "title": "sample string 2", "title_hausa": "sample string 3", "image_icon": "sample string 4", "description": "sample string 5", "description_hausa": "sample string 6", "is_bol_kan": true, "create_dt": "2025-06-17T19:37:47.0299846+01:00", "modified_dt": "2025-06-17T19:37:47.0299846+01:00", "is_top_story": true, "news_type": 9, "Selected": true, "pkTopstoryID": 11, "serialrNo": 12, "isThumbnailSelected": true } ]
text/html
Sample:
[{"pk_news_id":1,"title":"sample string 2","title_hausa":"sample string 3","image_icon":"sample string 4","description":"sample string 5","description_hausa":"sample string 6","is_bol_kan":true,"create_dt":"2025-06-17T19:37:47.0299846+01:00","modified_dt":"2025-06-17T19:37:47.0299846+01:00","is_top_story":true,"news_type":9,"Selected":true,"pkTopstoryID":11,"serialrNo":12,"isThumbnailSelected":true},{"pk_news_id":1,"title":"sample string 2","title_hausa":"sample string 3","image_icon":"sample string 4","description":"sample string 5","description_hausa":"sample string 6","is_bol_kan":true,"create_dt":"2025-06-17T19:37:47.0299846+01:00","modified_dt":"2025-06-17T19:37:47.0299846+01:00","is_top_story":true,"news_type":9,"Selected":true,"pkTopstoryID":11,"serialrNo":12,"isThumbnailSelected":true}]
application/xml, text/xml
Sample:
<ArrayOfNewsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nishadi_DataLayer.ViewModel"> <NewsViewModel> <Selected>true</Selected> <create_dt>2025-06-17T19:37:47.0299846+01:00</create_dt> <description>sample string 5</description> <description_hausa>sample string 6</description_hausa> <image_icon>sample string 4</image_icon> <isThumbnailSelected>true</isThumbnailSelected> <is_bol_kan>true</is_bol_kan> <is_top_story>true</is_top_story> <modified_dt>2025-06-17T19:37:47.0299846+01:00</modified_dt> <news_type>9</news_type> <pkTopstoryID>11</pkTopstoryID> <pk_news_id>1</pk_news_id> <serialrNo>12</serialrNo> <title>sample string 2</title> <title_hausa>sample string 3</title_hausa> </NewsViewModel> <NewsViewModel> <Selected>true</Selected> <create_dt>2025-06-17T19:37:47.0299846+01:00</create_dt> <description>sample string 5</description> <description_hausa>sample string 6</description_hausa> <image_icon>sample string 4</image_icon> <isThumbnailSelected>true</isThumbnailSelected> <is_bol_kan>true</is_bol_kan> <is_top_story>true</is_top_story> <modified_dt>2025-06-17T19:37:47.0299846+01:00</modified_dt> <news_type>9</news_type> <pkTopstoryID>11</pkTopstoryID> <pk_news_id>1</pk_news_id> <serialrNo>12</serialrNo> <title>sample string 2</title> <title_hausa>sample string 3</title_hausa> </NewsViewModel> </ArrayOfNewsViewModel>