All Verbs | /KB/GetKbCategories/ |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CategoryId | query | int | No | |
SearchText | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
start | form | DateTime | No | |
DeviceUUID | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
KBCategories | form | List<KbCategoryDTO> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | bool | No | |
ResMessage | form | string | No | |
Error | form | Error | No | |
PageInfo | form | BasePageInfo | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ErrorYn | form | bool | No | |
ErrorCode | form | string | No | |
ErrorDescription | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
TotalRecordCount | form | int | No | |
TotalPageCount | form | int | No | |
CurrentPage | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CategoryId | form | int | No | |
Name | form | string | No | |
IsHot | form | bool | No | |
Parent | form | int? | No | |
SefName | form | string | No | |
Author | form | long | No | |
Icon | form | string | No | |
Articles | form | List<KbArticleDTO> | No | |
SubCategories | form | List<KbCategoryDTO> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ArticleId | form | long | No | |
Title | form | string | No | |
Content | form | string | No | |
Views | form | int | No | |
Likes | form | int | No | |
Created | form | DateTime? | No | |
Edited | form | DateTime? | No | |
IsDraft | form | int | No | |
PublishStartDate | form | DateTime? | No | |
PublishEndDate | form | DateTime? | No | |
Author | form | long | No | |
CategoryId | form | int | No | |
SefName | form | string | No | |
NeedionName | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
KBCategories | form | List<KbCategoryDTO> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /KB/GetKbCategories/ HTTP/1.1
Host: baseservices2.needion.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CategoryId":0,"SearchText":"String","start":"\/Date(1611224920714+0300)\/","DeviceUUID":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"KBCategories":[{"CategoryId":0,"Name":"String","IsHot":false,"Parent":0,"SefName":"String","Author":0,"Icon":"String","Articles":[{"ArticleId":0,"Title":"String","Content":"String","Views":0,"Likes":0,"Created":"\/Date(-62135596800000-0000)\/","Edited":"\/Date(-62135596800000-0000)\/","IsDraft":0,"PublishStartDate":"\/Date(-62135596800000-0000)\/","PublishEndDate":"\/Date(-62135596800000-0000)\/","Author":0,"CategoryId":0,"SefName":"String","NeedionName":"String"}],"SubCategories":[{"CategoryId":0,"Name":"String","IsHot":false,"Parent":0,"SefName":"String","Author":0,"Icon":"String","Articles":[{"ArticleId":0,"Title":"String","Content":"String","Views":0,"Likes":0,"Created":"\/Date(-62135596800000-0000)\/","Edited":"\/Date(-62135596800000-0000)\/","IsDraft":0,"PublishStartDate":"\/Date(-62135596800000-0000)\/","PublishEndDate":"\/Date(-62135596800000-0000)\/","Author":0,"CategoryId":0,"SefName":"String","NeedionName":"String"}],"SubCategories":[{"CategoryId":0,"Name":"String","IsHot":false,"Parent":0,"SefName":"String","Author":0,"Icon":"String","Articles":[{"ArticleId":0,"Title":"String","Content":"String","Views":0,"Likes":0,"Created":"\/Date(-62135596800000-0000)\/","Edited":"\/Date(-62135596800000-0000)\/","IsDraft":0,"PublishStartDate":"\/Date(-62135596800000-0000)\/","PublishEndDate":"\/Date(-62135596800000-0000)\/","Author":0,"CategoryId":0,"SefName":"String","NeedionName":"String"}]}]}]}],"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"},"PageInfo":{"TotalRecordCount":0,"TotalPageCount":0,"CurrentPage":0}}