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(E[�Ay?�5xl/workbook.xml �(�����0D�J��(�PH���ҵCw��J�����R�n�����b�3�E>jҮ�5��c���]̌:�Fc� 퓙q�=��+Ԟ�IR0�xi�rvt���r�E�@�j�P
����D_�=$..�`�uW��-�~S<Ž����5m�%ѹ
5�Rb+�{�'%deW�)f���`0����PK(E[����	�[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="R554f26430f574cb7" /></Relationships>PK(E[���]��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(E[��Da�Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;(�B�ɦ�4�1F�Nڜ���W��J-���&�����4����޾M#;��5-dI
���r0}��j�n�{1�	��ٳ�b|:���s/4M�;��e݄!���3�#���4��[2�����C�J
�vV�&2�0���5Qv@�Sh���5dI�{�-�2m�h��̩�N�wS��2�����255�e#TU�TyW���Kp��K�ey��XgBv�<EYJtW5~��/PK(E[Ѓ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(E[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[�Ay?�5xl/workbook.xmlPK-(E[����	��[Content_Types].xmlPK-
(E[��Ⱥ''U_rels/.relsPK-(E[���]���xl/worksheets/sheet1.xmlPK-(E[��Da�P�xl/_rels/workbook.xml.relsPK-(E[Ѓc'2E
�xl/styles.xmlPK-(E[3%��vxl/sharedStrings.xmlPK��	

application/vnd.ms-excel

Sample:
PK(E[G���5xl/workbook.xml �(�����0��&�C�� ��N\�z��"
�'m
>�P�7o;�����j��r�-h��sM��IT��V���}1�u��J7o�ʳse��^h�za]i�������W��hy<—fO��r6���I�b�)`�EPD�ĂV����ۂƔ�\���Q����.I%	��;���w�PK(E[����	�[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="R5b4079a76a264c93" /></Relationships>PK(E[���]��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(E[N�}��Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞�&�5���p�q5�#�-�l,8W�*�6]����������m�}�m�gZ��`�NQ?�`�Y�q1M3́�Z01�O�ip!s3����O"���t�(z���U�/p�$�ˌ�!:��;'O����:19�cl��5�,Q�<���`�P��2/X��wS�2b����2�UX�T�u�u��*c�G�}���iY^�I^�E�sYr](�\���_l�PK(E[Ѓ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(E[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[G���5xl/workbook.xmlPK-(E[����	�[Content_Types].xmlPK-
(E[ž��''V_rels/.relsPK-(E[���]���xl/worksheets/sheet1.xmlPK-(E[N�}��P�xl/_rels/workbook.xml.relsPK-(E[Ѓc'2E
�xl/styles.xmlPK-(E[3%��xxl/sharedStrings.xmlPK��