GET api/Blog/GetBlogList?SearchTerms={SearchTerms}&StaffId={StaffId}&CategoryId={CategoryId}&TypeId={TypeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SearchTerms

string

None.

StaffId

integer

None.

CategoryId

integer

None.

TypeId

integer

None.

Body Parameters

None.

Response Information

Resource Description

BlogSearchOutput
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

BlogPostList

Collection of BlogPostDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "blogPostList": [
    {
      "title": "sample string 1",
      "body": "sample string 2",
      "previewText": "sample string 3",
      "isPinned": true,
      "createdDateTime": "sample string 5",
      "postDateTime": "sample string 6",
      "eventDateTime": "sample string 7",
      "keywords": "sample string 8",
      "urlSlug": "sample string 9",
      "author": "sample string 10",
      "staffId": 11,
      "typeID": 12,
      "categories": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "imageURL": "sample string 13"
    },
    {
      "title": "sample string 1",
      "body": "sample string 2",
      "previewText": "sample string 3",
      "isPinned": true,
      "createdDateTime": "sample string 5",
      "postDateTime": "sample string 6",
      "eventDateTime": "sample string 7",
      "keywords": "sample string 8",
      "urlSlug": "sample string 9",
      "author": "sample string 10",
      "staffId": 11,
      "typeID": 12,
      "categories": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "imageURL": "sample string 13"
    }
  ]
}

application/xml, text/xml

Sample:
<BlogSearchOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Public">
  <BlogPostList>
    <BlogPostDetails>
      <Author>sample string 10</Author>
      <Body>sample string 2</Body>
      <Categories xmlns:d4p1="http://schemas.datacontract.org/2004/07/TTCM.BusinessLayer.Services">
        <d4p1:GenericValue />
        <d4p1:GenericValue />
      </Categories>
      <CreatedDateTime>sample string 5</CreatedDateTime>
      <EventDateTime>sample string 7</EventDateTime>
      <ImageURL>sample string 13</ImageURL>
      <IsPinned>true</IsPinned>
      <Keywords>sample string 8</Keywords>
      <PostDateTime>sample string 6</PostDateTime>
      <PreviewText>sample string 3</PreviewText>
      <StaffId>11</StaffId>
      <Title>sample string 1</Title>
      <TypeID>12</TypeID>
      <URLSlug>sample string 9</URLSlug>
    </BlogPostDetails>
    <BlogPostDetails>
      <Author>sample string 10</Author>
      <Body>sample string 2</Body>
      <Categories xmlns:d4p1="http://schemas.datacontract.org/2004/07/TTCM.BusinessLayer.Services">
        <d4p1:GenericValue />
        <d4p1:GenericValue />
      </Categories>
      <CreatedDateTime>sample string 5</CreatedDateTime>
      <EventDateTime>sample string 7</EventDateTime>
      <ImageURL>sample string 13</ImageURL>
      <IsPinned>true</IsPinned>
      <Keywords>sample string 8</Keywords>
      <PostDateTime>sample string 6</PostDateTime>
      <PreviewText>sample string 3</PreviewText>
      <StaffId>11</StaffId>
      <Title>sample string 1</Title>
      <TypeID>12</TypeID>
      <URLSlug>sample string 9</URLSlug>
    </BlogPostDetails>
  </BlogPostList>
  <Message>sample string 2</Message>
  <Success>true</Success>
</BlogSearchOutput>