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:
PKE�[iğ�5xl/workbook.xml �(�����0D�H����r CE�6E��`�َ��C �K�3;�v�h\_ӳ���\λl�������]k��0I�Ӷ����oE:@Egp4`�F�NZ�W�?,oa�;����Pj^����S��9[��d���7%�~�(�QQ�K���ܛ�ǜ�LN��J�
/U�P�Q[��l��/PKE�[����	�[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
E�[���f''_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="R8c74f91185b24218" /></Relationships>PKE�[���]��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Χ�PKE�[�����Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞��&�i7l�-���L⨉�n�gc���V� �X��j4��'�|���o�H����l
<c@�j���������G�D0�HZ����Di�'27�M���IŔ���JU�T0�H���Lr�����A�ӧ	m�L_�?����1��S
�x��@vm
�y�V�(�d]��M-�ˈ���;_Ȭ��i&DS�D��*c���%�t�Ӳ�PcUU2-r�s)�^���_l�PKE�[Ѓ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��PKE�[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-E�[iğ�5xl/workbook.xmlPK-E�[����	��[Content_Types].xmlPK-
E�[���f''U_rels/.relsPK-E�[���]���xl/worksheets/sheet1.xmlPK-E�[�����P�xl/_rels/workbook.xml.relsPK-E�[Ѓc'2E
�xl/styles.xmlPK-E�[3%��wxl/sharedStrings.xmlPK��	

application/vnd.ms-excel

Sample:
PKE�[��S/�5xl/workbook.xml �(�����0��&�C���
8q����J�@����[ �x�3;��T����ځ|�hB�k*ct%c���!��C�v��b���l߫[۽5��Μ_����&H�]i����"HĨ��A��Ts���),2[��$l
��T����Ek�BJ�&j�Q�K��;G^�2������;�b���PKE�[����	�[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
E�[����''_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="Rd05e7ad949aa4ca0" /></Relationships>PKE�[���]��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Χ�PKE�[G?�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�&i��ݰa[zמ|�Ķl��Xp$��U$H%l����I3�����<�qt�^0 h�3��[8��f��I�<��G�WllaH�?P������hs�saV)���^���3VӰd�5����Ct]7j|t�4�M���8 & {zL-��"�^d*�'�Ž!�97�����ZL�	��w��9��J2]cY6աc7�T@�B���iY^�I)�����U��E�^���PKE�[Ѓ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��PKE�[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-E�[��S/�5xl/workbook.xmlPK-E�[����	��[Content_Types].xmlPK-
E�[����''U_rels/.relsPK-E�[���]���xl/worksheets/sheet1.xmlPK-E�[G?�P�xl/_rels/workbook.xml.relsPK-E�[Ѓc'2E
�xl/styles.xmlPK-E�[3%��vxl/sharedStrings.xmlPK��