GET v2/categories?rootOnly={rootOnly}&hasRelease={hasRelease}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
rootOnly

boolean

Default value is False

hasRelease

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

ListResultOfNewsCategoryModel
NameDescriptionTypeAdditional information
Items

Collection of NewsCategoryModel

None.

Success

boolean

None.

ErrorMessage

string

None.

Status

ResultStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "$id": "2",
      "Name": "sample string 1",
      "Slug": "sample string 2",
      "__metadata": {
        "$id": "3",
        "type": "sample string 1",
        "uri": "sample string 2"
      }
    },
    {
      "$ref": "2"
    }
  ],
  "Success": true,
  "ErrorMessage": "sample string 2",
  "Status": 0
}

application/xml, text/xml

Sample:
<ListResultOfNewsCategoryModelBrRlwU_Pn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dino.Domain.Contracts.Services.Result">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Status>Success</Status>
  <Success>true</Success>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dino.API.Models">
    <d2p1:NewsCategoryModel>
      <d2p1:Metadata>
        <d2p1:Type>sample string 1</d2p1:Type>
        <d2p1:Uri>sample string 2</d2p1:Uri>
      </d2p1:Metadata>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Slug>sample string 2</d2p1:Slug>
    </d2p1:NewsCategoryModel>
    <d2p1:NewsCategoryModel>
      <d2p1:Metadata>
        <d2p1:Type>sample string 1</d2p1:Type>
        <d2p1:Uri>sample string 2</d2p1:Uri>
      </d2p1:Metadata>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:Slug>sample string 2</d2p1:Slug>
    </d2p1:NewsCategoryModel>
  </Items>
</ListResultOfNewsCategoryModelBrRlwU_Pn>