GET api/allergen/{id}
Get allergen
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Allergen identifier |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Matching Allergen
AllergenName | Description | Type | Additional information |
---|---|---|---|
ID |
Allergen identifier |
integer |
None. |
Name |
The allergen description and as used in the declaration statement |
string |
None. |
Reserved |
This allergen is reserved and can not be deleted by users |
boolean |
None. |
Updated |
The last time the allergen was updated (UTC on server) |
date |
None. |
Deleted |
Allergen has been soft deleted |
boolean |
None. |
Ingredients |
List of allergen ingredients for other declarations |
Collection of AllergenIngredient |
Relation. This field may not always be loaded or used for updates. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "name": "sample string 2", "reserved": true, "updated": "2025-08-02T23:19:34.8065923", "deleted": true, "ingredients": [ { "$id": "2", "id": 1, "allergenID": 2, "text": "sample string 3" }, { "$ref": "2" } ] }
application/xml, text/xml
Sample:
<Allergen xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Allergens"> <Deleted>true</Deleted> <ID>1</ID> <Ingredients> <AllergenIngredient> <AllergenID>2</AllergenID> <ID>1</ID> <Text>sample string 3</Text> </AllergenIngredient> <AllergenIngredient> <AllergenID>2</AllergenID> <ID>1</ID> <Text>sample string 3</Text> </AllergenIngredient> </Ingredients> <Name>sample string 2</Name> <Reserved>true</Reserved> <Updated>2025-08-02T23:19:34.8065923+00:00</Updated> </Allergen>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK q�[�˧w� 5 xl/workbook.xml � (� ���� ��&�����Ħ���SX�X~���R�6��mgv��ig^�s/�1��M�J�7�D���xrl�IKY�'qRj��o6�KUQ`bI;����X�`"*�d�e���?j�f s,2[��Dd ��T[`�EQ�2Xb�&:|�(4:w��GJ��c-x�w�k����PK q�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK q�[�nƷ' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R23b08f010ab54fe8" /></Relationships>PK q�[��R�� � xl/worksheets/sheet1.xml � (� ���r�0�_�Ѿ� ��$u�v��]SF@I6y� A�d�v�ι:�@��2��Yh#"��V�98��E6)�l:!l����t:k�;M݉�2�:�ѭ�J�uS}��me-��> b�� C-�ʺR��G��2G-��oa����#(�F:�y��m�$ �E��RL�j�I~+�<O�59@����ſ�mu��5}��YwH�kj� 9����'��.i�)���등j��<�Ջ��:r�a&Q�is����Ѫ���2� ')A<J��r���ky�2���~�}���ƎW]|�%i1����Ɣ���˩��+[�VS���s�G�nh|c]��{C���y֮�Ӗ����-An����n�/[���`�`�t�5Y5o���l��\["��u�OOp�&8�����Ы��.��d�p�K��оח�N�PK q�[ C v� P xl/_rels/workbook.xml.rels � (� ��An� E��f_C�U�l��6�0Ɗ ��9[=R�P�H-���&+4��i������m���0:���`@�J�F;tp���v��'Ӎ`�%��ĆL���A�E(܂6u��]�<�i��>g�5�����%>:y���?����c0��A�c?Q��ǪHT O��=j�=犳�����Л��x�0�z]�LF�ID�uS7�=����s�iӹSgj=+�-��lj^��2'z�/�_PK q�[Ѓc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK q�[ަND � xl/sharedStrings.xml � (� m�AK1��J��dۃ��n�m�����I �H&kf�X�)���yߛa�7��+xq�D.b%g�����aW�����F b����P�#���$b�G�*�3wZS�C0�� ������,S�iH`,� ��ŵơm�+y+ň�s���W�\����Կ�<� S�� v�w�5|������.�u�LS�L<� R�Ȩ�6�7��!�&z-�tI=Br�zr�ﳷշ�4$��<�զQ��?u��O����y��� PK- q�[�˧w� 5 xl/workbook.xmlPK- q�[���� � � [Content_Types].xmlPK- q�[�nƷ' ' U _rels/.relsPK- q�[��R�� � � xl/worksheets/sheet1.xmlPK- q�[ C v� P � xl/_rels/workbook.xml.relsPK- q�[Ѓc'2 E xl/styles.xmlPK- q�[ަND � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK q�[ś�U� 5 xl/workbook.xml � (� ����0D�&�C��ED#N\�z4Ж�5��$��ξ�b��{Zۑ���]I���1/Z��v@w�: !J�bVJ%����v�����5�U����B�[Ġ��AZ�w�S�����2k��$l ��T1ö�YKZC Jf�֔4���*�$� x�5�^O/tco�����/PK q�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK q�[�g�' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Rd0ce193cd1514f95" /></Relationships>PK q�[��R�� � xl/worksheets/sheet1.xml � (� ���r�0�_�Ѿ� ��$u�v��]SF@I6y� A�d�v�ι:�@��2��Yh#"��V�98��E6)�l:!l����t:k�;M݉�2�:�ѭ�J�uS}��me-��> b�� C-�ʺR��G��2G-��oa����#(�F:�y��m�$ �E��RL�j�I~+�<O�59@����ſ�mu��5}��YwH�kj� 9����'��.i�)���등j��<�Ջ��:r�a&Q�is����Ѫ���2� ')A<J��r���ky�2���~�}���ƎW]|�%i1����Ɣ���˩��+[�VS���s�G�nh|c]��{C���y֮�Ӗ����-An����n�/[���`�`�t�5Y5o���l��\["��u�OOp�&8�����Ы��.��d�p�K��оח�N�PK q�[r'