GET api/GetMaterials?dept_code={dept_code}&srv_code={srv_code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| dept_code | integer |
Required |
|
| srv_code | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Materials| Name | Description | Type | Additional information |
|---|---|---|---|
| ROW_ID | integer |
None. |
|
| DEPT_CD | integer |
None. |
|
| DEPT_NM | string |
None. |
|
| SERVICE_CD | integer |
None. |
|
| SERVICE_DESC | string |
None. |
|
| MTRL_CD | integer |
None. |
|
| MTRL_NM | string |
None. |
|
| MTRL_TYPE | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ROW_ID": 1,
"DEPT_CD": 2,
"DEPT_NM": "sample string 3",
"SERVICE_CD": 4,
"SERVICE_DESC": "sample string 5",
"MTRL_CD": 6,
"MTRL_NM": "sample string 7",
"MTRL_TYPE": "sample string 8"
},
{
"ROW_ID": 1,
"DEPT_CD": 2,
"DEPT_NM": "sample string 3",
"SERVICE_CD": 4,
"SERVICE_DESC": "sample string 5",
"MTRL_CD": 6,
"MTRL_NM": "sample string 7",
"MTRL_TYPE": "sample string 8"
}
]
application/xml, text/xml
Sample:
<ArrayOfMaterials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/School.Models">
<Materials>
<DEPT_CD>2</DEPT_CD>
<DEPT_NM>sample string 3</DEPT_NM>
<MTRL_CD>6</MTRL_CD>
<MTRL_NM>sample string 7</MTRL_NM>
<MTRL_TYPE>sample string 8</MTRL_TYPE>
<ROW_ID>1</ROW_ID>
<SERVICE_CD>4</SERVICE_CD>
<SERVICE_DESC>sample string 5</SERVICE_DESC>
</Materials>
<Materials>
<DEPT_CD>2</DEPT_CD>
<DEPT_NM>sample string 3</DEPT_NM>
<MTRL_CD>6</MTRL_CD>
<MTRL_NM>sample string 7</MTRL_NM>
<MTRL_TYPE>sample string 8</MTRL_TYPE>
<ROW_ID>1</ROW_ID>
<SERVICE_CD>4</SERVICE_CD>
<SERVICE_DESC>sample string 5</SERVICE_DESC>
</Materials>
</ArrayOfMaterials>