GET api/BarnChat/GetAllBarnChatMessagesByPageNumber?barnChatID={barnChatID}&pageNumber={pageNumber}&personID={personID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
barnChatID

string

Required

pageNumber

integer

Required

personID

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of BarnChatMessage
NameDescriptionTypeAdditional information
BarnChatID

integer

None.

BarnChatMessageID

integer

None.

PersonID

integer

None.

Message

string

None.

PersonName

string

None.

AuthorID

integer

None.

DateModified

date

None.

DateCreated

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "BarnChatID": 1,
    "BarnChatMessageID": 2,
    "PersonID": 3,
    "Message": "sample string 4",
    "PersonName": "sample string 5",
    "AuthorID": 6,
    "DateModified": "2025-07-28T13:55:15.3238567-07:00",
    "DateCreated": "2025-07-28T13:55:15.3238567-07:00"
  },
  {
    "BarnChatID": 1,
    "BarnChatMessageID": 2,
    "PersonID": 3,
    "Message": "sample string 4",
    "PersonName": "sample string 5",
    "AuthorID": 6,
    "DateModified": "2025-07-28T13:55:15.3238567-07:00",
    "DateCreated": "2025-07-28T13:55:15.3238567-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfBarnChatMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Equestrian.Entities">
  <BarnChatMessage>
    <DateCreated>2025-07-28T13:55:15.3238567-07:00</DateCreated>
    <DateModified>2025-07-28T13:55:15.3238567-07:00</DateModified>
    <AuthorID>6</AuthorID>
    <BarnChatID>1</BarnChatID>
    <BarnChatMessageID>2</BarnChatMessageID>
    <Message>sample string 4</Message>
    <PersonID>3</PersonID>
    <PersonName>sample string 5</PersonName>
  </BarnChatMessage>
  <BarnChatMessage>
    <DateCreated>2025-07-28T13:55:15.3238567-07:00</DateCreated>
    <DateModified>2025-07-28T13:55:15.3238567-07:00</DateModified>
    <AuthorID>6</AuthorID>
    <BarnChatID>1</BarnChatID>
    <BarnChatMessageID>2</BarnChatMessageID>
    <Message>sample string 4</Message>
    <PersonID>3</PersonID>
    <PersonName>sample string 5</PersonName>
  </BarnChatMessage>
</ArrayOfBarnChatMessage>