GET api/Ethnicity/GetEthnicities

GET: api/Ethnicity

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Get all ethnicities

Collection of VEthnicity
NameDescriptionTypeAdditional information
EthnicityCode

Ethnicity Code

string

None.

EthnicityText

Ethnicity

string

None.

IsTopEthnicity

Is a top Ethnicity

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "EthnicityCode": "sample string 1",
    "EthnicityText": "sample string 2",
    "IsTopEthnicity": true
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfVEthnicity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <VEthnicity>
    <EthnicityCode>sample string 1</EthnicityCode>
    <EthnicityText>sample string 2</EthnicityText>
    <IsTopEthnicity>true</IsTopEthnicity>
  </VEthnicity>
  <VEthnicity>
    <EthnicityCode>sample string 1</EthnicityCode>
    <EthnicityText>sample string 2</EthnicityText>
    <IsTopEthnicity>true</IsTopEthnicity>
  </VEthnicity>
</ArrayOfVEthnicity>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].EthnicityCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].EthnicityText"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].IsTopEthnicity"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].EthnicityCode"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].EthnicityText"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].IsTopEthnicity"

True
--MultipartDataMediaFormatterBoundary1q2w3e--