POST api/GetPersonAllergens

Request Information

URI Parameters

None.

Body Parameters

PersonAllergenRequestModel
NameDescriptionTypeAdditional information
PersonId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonId": "33d9fa70-9eed-4d74-91a8-d41d222583cc"
}

application/xml, text/xml

Sample:
<PersonAllergenRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order">
  <PersonId>33d9fa70-9eed-4d74-91a8-d41d222583cc</PersonId>
</PersonAllergenRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PersonAllergenRequestModel'.

Response Information

Resource Description

Collection of PersonAllergenResponseModel
NameDescriptionTypeAdditional information
AllergenId

integer

None.

AllergenDescription

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AllergenId": 1,
    "AllergenDescription": "sample string 2"
  },
  {
    "AllergenId": 1,
    "AllergenDescription": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPersonAllergenResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order">
  <PersonAllergenResponseModel>
    <AllergenDescription>sample string 2</AllergenDescription>
    <AllergenId>1</AllergenId>
  </PersonAllergenResponseModel>
  <PersonAllergenResponseModel>
    <AllergenDescription>sample string 2</AllergenDescription>
    <AllergenId>1</AllergenId>
  </PersonAllergenResponseModel>
</ArrayOfPersonAllergenResponseModel>