GET api/Article?categoryID={categoryID}

Retrieves list of Tech Articles based on the Category Id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
categoryID

Filter and return list of Articles

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of Tech Articles filter by Category ID.

Collection of TechArticle
NameDescriptionTypeAdditional information
ArticleID

Gets or sets the unique identifier of the article.

integer

None.

ArticleName

Gets or sets the name of the article.

string

None.

ArticleBody

Gets or sets the duration of reading the article body or content.

string

None.

DurationInMinutes

Gets or sets the duration of reading the article in minutes.

integer

None.

CategoryID

Gets or sets the ID of the category the article belongs to.

integer

None.

ArticleTags

Gets or sets the tag(s) associated with the article.

string

None.

AuthorName

Gets or sets the name of the author of the article.

string

None.

PublishedDate

Gets or sets the published date of the article.

string

None.

ImageURL

Gets or sets the URL of the article's image.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ArticleID": 1,
    "ArticleName": "sample string 2",
    "ArticleBody": "sample string 3",
    "DurationInMinutes": 4,
    "CategoryID": 5,
    "ArticleTags": "sample string 6",
    "AuthorName": "sample string 7",
    "PublishedDate": "sample string 8",
    "ImageURL": "sample string 9"
  },
  {
    "ArticleID": 1,
    "ArticleName": "sample string 2",
    "ArticleBody": "sample string 3",
    "DurationInMinutes": 4,
    "CategoryID": 5,
    "ArticleTags": "sample string 6",
    "AuthorName": "sample string 7",
    "PublishedDate": "sample string 8",
    "ImageURL": "sample string 9"
  }
]

application/xml, text/xml

Sample:
<ArrayOfTechArticle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <TechArticle>
    <ArticleBody>sample string 3</ArticleBody>
    <ArticleID>1</ArticleID>
    <ArticleName>sample string 2</ArticleName>
    <ArticleTags>sample string 6</ArticleTags>
    <AuthorName>sample string 7</AuthorName>
    <CategoryID>5</CategoryID>
    <DurationInMinutes>4</DurationInMinutes>
    <ImageURL>sample string 9</ImageURL>
    <PublishedDate>sample string 8</PublishedDate>
  </TechArticle>
  <TechArticle>
    <ArticleBody>sample string 3</ArticleBody>
    <ArticleID>1</ArticleID>
    <ArticleName>sample string 2</ArticleName>
    <ArticleTags>sample string 6</ArticleTags>
    <AuthorName>sample string 7</AuthorName>
    <CategoryID>5</CategoryID>
    <DurationInMinutes>4</DurationInMinutes>
    <ImageURL>sample string 9</ImageURL>
    <PublishedDate>sample string 8</PublishedDate>
  </TechArticle>
</ArrayOfTechArticle>