GET api/Values/GetContactTable

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Contact
NameDescriptionTypeAdditional information
id

integer

None.

Name

string

Required

Max length: 150

Min length: 3

Email

string

Max length: 150

Min length: 7

Phone

string

Required

Max length: 200

Min length: 10

Question

string

Max length: 1000

DateAdded

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "Name": "sample string 2",
    "Email": "sample string 3",
    "Phone": "sample string 4",
    "Question": "sample string 5",
    "DateAdded": "2021-09-24T05:03:30.3066122-07:00"
  },
  {
    "id": 1,
    "Name": "sample string 2",
    "Email": "sample string 3",
    "Phone": "sample string 4",
    "Question": "sample string 5",
    "DateAdded": "2021-09-24T05:03:30.3066122-07:00"
  }
]

text/html

Sample:
[{"id":1,"Name":"sample string 2","Email":"sample string 3","Phone":"sample string 4","Question":"sample string 5","DateAdded":"2021-09-24T05:03:30.3066122-07:00"},{"id":1,"Name":"sample string 2","Email":"sample string 3","Phone":"sample string 4","Question":"sample string 5","DateAdded":"2021-09-24T05:03:30.3066122-07:00"}]

application/xml, text/xml

Sample:
<ArrayOfContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Navaidh.Models">
  <Contact>
    <DateAdded>2021-09-24T05:03:30.3066122-07:00</DateAdded>
    <Email>sample string 3</Email>
    <Name>sample string 2</Name>
    <Phone>sample string 4</Phone>
    <Question>sample string 5</Question>
    <id>1</id>
  </Contact>
  <Contact>
    <DateAdded>2021-09-24T05:03:30.3066122-07:00</DateAdded>
    <Email>sample string 3</Email>
    <Name>sample string 2</Name>
    <Phone>sample string 4</Phone>
    <Question>sample string 5</Question>
    <id>1</id>
  </Contact>
</ArrayOfContact>