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:
PK7�Z�]���5xl/workbook.xml �(�����0��&�C��U$�p��Ճ�R�H����[J ��mgv��a�������Ʉ�7X��jB���y8Y&�F�5�I�'��tV�5�H.����ģ�&H�^i������ ��V�����x@�-�
�e2�����"�)�a�EV�p

�x�e�64����U�@_��P�+-��;���w�PK7�Z����	�[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
7�Z�ї�''_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="R0fc33f47181d4f0c" /></Relationships>PK7�Z���]��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Χ�PK7�Z��C��Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�m\���vÆm�{GM��v���G�
XE�Tb�������4����ݿ�y�{�X:�u���<�a��p�)OD�O���)MJ��8�X�	]�F�r::Iu��%c��9n��x��?DoL��ѫ�.���>��EL@�2t��)Ez
�"S�<�b[�J#V��R�wS��2`����g2����-M���\���XP?��/=w��gj�H�W��Rs!�W5z��/PK7�ZЃ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��PK7�Z3%��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-7�Z�]���5xl/workbook.xmlPK-7�Z����	��[Content_Types].xmlPK-
7�Z�ї�''U_rels/.relsPK-7�Z���]���xl/worksheets/sheet1.xmlPK-7�Z��C��P�xl/_rels/workbook.xml.relsPK-7�ZЃc'2E
�xl/styles.xmlPK-7�Z3%��vxl/sharedStrings.xmlPK��	

application/vnd.ms-excel

Sample:
PK7�Z8��
�5xl/workbook.xml �(�����0D�J��(�������k��&�&�$(IE?�R�n�����ٺ��v =_�����1/$j�;����:
!J�b���Ɗ�FX�y���5^��Ӎ��O��1�qCiP���!���p����^w1	�B�7U���bUĀƊ6��չwM(q���#�nm.�R�W����>`%��_PK7�Z����	�[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
7�Z�%�[''_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="R42e4918de1c44ac2" /></Relationships>PK7�Z���]��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Χ�PK7�Z���Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�I\'��ݰ���=��&vd����G�
XE�Tb�������4����޾M#9���
��V9=ؾ�S�j�n�{eL�s iņL���A�d�܌6u:�'S�{:Ku�=҂1A���Lr�����A�S�	m�L_�?����16�S
��,Q��t���Z�t.�����Z��ï�w�����hG�˕�����K���K�ey�VU�u�5r޶�U�����PK7�ZЃ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��PK7�Z3%��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-7�Z8��
�5xl/workbook.xmlPK-7�Z����	��[Content_Types].xmlPK-
7�Z�%�[''U_rels/.relsPK-7�Z���]���xl/worksheets/sheet1.xmlPK-7�Z���P�xl/_rels/workbook.xml.relsPK-7�ZЃc'2E
�xl/styles.xmlPK-7�Z3%��wxl/sharedStrings.xmlPK��