POST api/Customer/GetAll

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CustomerDataViewModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

Mail

string

None.

Phone

string

None.

FirstName

string

None.

LastName

string

None.

RegistrationDate

date

None.

BornDate

date

None.

BusinessList

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerId": 1,
    "Mail": "sample string 2",
    "Phone": "sample string 3",
    "FirstName": "sample string 4",
    "LastName": "sample string 5",
    "RegistrationDate": "2019-05-22T17:48:52.2928102+00:00",
    "BornDate": "2019-05-22T17:48:52.2928102+00:00",
    "BusinessList": [
      1,
      2
    ]
  },
  {
    "CustomerId": 1,
    "Mail": "sample string 2",
    "Phone": "sample string 3",
    "FirstName": "sample string 4",
    "LastName": "sample string 5",
    "RegistrationDate": "2019-05-22T17:48:52.2928102+00:00",
    "BornDate": "2019-05-22T17:48:52.2928102+00:00",
    "BusinessList": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <CustomerDataViewModel>
    <BornDate>2019-05-22T17:48:52.2928102+00:00</BornDate>
    <BusinessList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </BusinessList>
    <CustomerId>1</CustomerId>
    <FirstName>sample string 4</FirstName>
    <LastName>sample string 5</LastName>
    <Mail>sample string 2</Mail>
    <Phone>sample string 3</Phone>
    <RegistrationDate>2019-05-22T17:48:52.2928102+00:00</RegistrationDate>
  </CustomerDataViewModel>
  <CustomerDataViewModel>
    <BornDate>2019-05-22T17:48:52.2928102+00:00</BornDate>
    <BusinessList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </BusinessList>
    <CustomerId>1</CustomerId>
    <FirstName>sample string 4</FirstName>
    <LastName>sample string 5</LastName>
    <Mail>sample string 2</Mail>
    <Phone>sample string 3</Phone>
    <RegistrationDate>2019-05-22T17:48:52.2928102+00:00</RegistrationDate>
  </CustomerDataViewModel>
</ArrayOfCustomerDataViewModel>