GET api/msc/departments

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of MSCDepartment
NameDescriptionTypeAdditional information
Dept

integer

None.

Name

string

None.

Active

boolean

None.

MSCCategories

Collection of MSCCategory

None.

DeptCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "dept": 1,
    "name": "sample string 2",
    "active": true,
    "mscCategories": [
      {
        "$id": "2",
        "dept": 1,
        "category": 2,
        "name": "sample string 3",
        "active": true,
        "mscCommodities": [
          {
            "$id": "3",
            "dept": 1,
            "category": 2,
            "commodity": 3,
            "name": "sample string 4",
            "active": true,
            "mscSubCommodities": [
              {
                "$id": "4",
                "dept": 1,
                "category": 2,
                "commodity": 3,
                "subCommodity": 4,
                "name": "sample string 5",
                "active": true,
                "subCommodityCode": "sample string 7"
              },
              {
                "$ref": "4"
              }
            ],
            "commodityCode": "sample string 6"
          },
          {
            "$ref": "3"
          }
        ],
        "categoryCode": "sample string 5"
      },
      {
        "$ref": "2"
      }
    ],
    "deptCode": "sample string 4"
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMSCDepartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Departments">
  <MSCDepartment>
    <Active>true</Active>
    <Dept>1</Dept>
    <DeptCode>sample string 4</DeptCode>
    <MSCCategories>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
    </MSCCategories>
    <Name>sample string 2</Name>
  </MSCDepartment>
  <MSCDepartment>
    <Active>true</Active>
    <Dept>1</Dept>
    <DeptCode>sample string 4</DeptCode>
    <MSCCategories>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
      <MSCCategory>
        <Active>true</Active>
        <Category>2</Category>
        <CategoryCode>sample string 5</CategoryCode>
        <Dept>1</Dept>
        <MSCCommodities>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
          <MSCCommodity>
            <Active>true</Active>
            <Category>2</Category>
            <Commodity>3</Commodity>
            <CommodityCode>sample string 6</CommodityCode>
            <Dept>1</Dept>
            <MSCSubCommodities>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
              <MSCSubCommodity>
                <Active>true</Active>
                <Category>2</Category>
                <Commodity>3</Commodity>
                <Dept>1</Dept>
                <Name>sample string 5</Name>
                <SubCommodity>4</SubCommodity>
                <SubCommodityCode>sample string 7</SubCommodityCode>
              </MSCSubCommodity>
            </MSCSubCommodities>
            <Name>sample string 4</Name>
          </MSCCommodity>
        </MSCCommodities>
        <Name>sample string 3</Name>
      </MSCCategory>
    </MSCCategories>
    <Name>sample string 2</Name>
  </MSCDepartment>
</ArrayOfMSCDepartment>

text/csv

Sample:

Sample not available.

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PKR3�\�r%�5xl/workbook.xml �(���;�0D�H����!�PѤM���:X������G �K�3;�v�d��X;��
��}�`����u`杴^�0K�bVJ�Bm۷�5�R�aAY��rH7�?,tD�=@���BZ�O���S�������b���o����bU�
%�E��ν+iL�/�<<�(�d��,ooI���`0����PKR3�\����	�[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
R3�\��r''_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="R257dcbe61c3b42cd" /></Relationships>PKR3�\���]��xl/worksheets/sheet1.xml �(���_S� ��
��ſ��6���]s.Nפ�2�����C�X+�V7
��^_�7ށ�������C@�JԬ��?�*�A�W�R���{��l�>lRUK9Q�8�ެ5Br��T�hVѝ����a�O���f+ղ��S���RIImx7�����kf���@Ҧ����.�����1:�Oc0�ɋ���.�oY���v�'	jڐc���ၲ}�M�b��D��p6�N��}`�n���O����҂?O����)��^rA䥱�A�I�,ŗ���o4�%�f����8݄����������&e.��]6��ѵ*�aL���§���i��čK�ĭK�sb��9q��B ����w<g�p��N�xe����%ҕ�Kd_[�����[k�X[����%����?Ӛ���{!4���ZΧ�PKR3�\��Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞؉��FM��m�\{�DM��v���G�
XE�Tb�������4����޾M#y��Z(��fp]�dl7�=�*��s$y�����GJ��qR��3�ܱ>L*�4ttV��:�c

K�2��2����A����.���>�b���T�0��S���"S�<��GV
˅R����@���b�����\qkT]q,%����L����N��B�ZS1˥Ხ�j��/6_PKR3�\Ѓc'2E
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��PKR3�\3%��xl/sharedStrings.xml �(�}Q�J�0���w��!����x�b}��IC���dS������9聏3���Ζ�������\�B
�6v�J��.�� ��Y*9I��K"يTɁy�՚��%G��|�,g�zMc�����uQ\�`J��	��7RL�>'08/pu��=�\j�K}Ŀܳ
���Zv�3��c���R<�6�;3�
��|t���Rާ�̲��!(��$"�G@H�UO��}���v�E�CRM��Im�r�8�NY��#]�d��P�PK-R3�\�r%�5xl/workbook.xmlPK-R3�\����	�[Content_Types].xmlPK-
R3�\��r''V_rels/.relsPK-R3�\���]���xl/worksheets/sheet1.xmlPK-R3�\��P�xl/_rels/workbook.xml.relsPK-R3�\Ѓc'2E
�xl/styles.xmlPK-R3�\3%��wxl/sharedStrings.xmlPK��	

application/vnd.ms-excel

Sample:
PKR3�\�v�5xl/workbook.xml �(�����0D�&�C��
��'.^=x_�bhK��|K	$޼��ξ�b2�o���G
�嶤��1g̵��Q�]g��}1�u��ڴo�ڳ�x̘��4�	9:���a��"p'���i��R�͞'e0ֺ�I�b��"¶����%��%ѹ�(����4�.�I��zk���`[W_PKR3�\����	�[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
R3�\OG�''_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="Rf8dc6163910b4a07" /></Relationships>PKR3�\���]��xl/worksheets/sheet1.xml �(���_S� ��
��ſ��6���]s.Nפ�2�����C�X+�V7
��^_�7ށ�������C@�JԬ��?�*�A�W�R���{��l�>lRUK9Q�8�ެ5Br��T�hVѝ����a�O���f+ղ��S���RIImx7�����kf���@Ҧ����.�����1:�Oc0�ɋ���.�oY���v�'	jڐc���ၲ}�M�b��D��p6�N��}`�n���O����҂?O����)��^rA䥱�A�I�,ŗ���o4�%�f����8݄����������&e.��]6��ѵ*�aL���§���i��čK�ĭK�sb��9q��B ����w<g�p��N�xe����%ҕ�Kd_[�����[k�X[����%����?Ӛ���{!4���ZΧ�PKR3�\��B�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞8�bԴ6ݖ^`����m�n�gc���V� �X��j4��'�|���o�����htY�#�9꾁SP��ݬ�4a�~�gqE����hF�K:v�q3����[���Ӵ�nɀ[&;\,��h�;z6�i&��W�~ 
��z

��<��,�T`;��	�+��\���������w��U�V�Vy�ڲ��+3�#�\���iY^�����@L3U�"WW5~��/PKR3�\Ѓc'2E
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��PKR3�\3%��xl/sharedStrings.xml �(�}Q�J�0���w��!����x�b}��IC���dS������9聏3���Ζ�������\�B
�6v�J��.�� ��Y*9I��K"يTɁy�՚��%G��|�,g�zMc�����uQ\�`J��	��7RL�>'08/pu��=�\j�K}Ŀܳ
���Zv�3��c���R<�6�;3�
��|t���Rާ�̲��!(��$"�G@H�UO��}���v�E�CRM��Im�r�8�NY��#]�d��P�PK-R3�\�v�5xl/workbook.xmlPK-R3�\����	��[Content_Types].xmlPK-
R3�\OG�''U_rels/.relsPK-R3�\���]���xl/worksheets/sheet1.xmlPK-R3�\��B�P�xl/_rels/workbook.xml.relsPK-R3�\Ѓc'2E
�xl/styles.xmlPK-R3�\3%��uxl/sharedStrings.xmlPK��