From OpenDCIM Wiki
Jump to: navigation, search
(Created page with "= Department = All calls to the /department tree of the API will return a collection or single entity in the following format: <nowiki> { "error": false, "errorcode...")
 
(Department)
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
 
}
 
}
 
</nowiki>
 
</nowiki>
 +
 +
:: /department
 +
:: '''Method''' GET
 +
:: '''Parameters''' none
 +
:: '''Specific Permission Required''' Contact Administrator
 +
 +
This URI will return a collection of all departments defined within openDCIM.
 +
 +
 +
:: /department/:DepartmentID
 +
:: '''Method''' GET
 +
:: '''Parameters''' DepartmentID
 +
:: '''Specific Permission Required''' Contact Adminstrator
 +
 +
This URI will return a collection containing one entity for the department specified by DepartmentID.
  
  
  
 
[[API|API Documentation]]
 
[[API|API Documentation]]

Latest revision as of 11:02, 23 December 2015

Department

All calls to the /department tree of the API will return a collection or single entity in the following format:

{
    "error": false,
    "errorcode": 200,
    "department": [
        {
            "DeptID": "1",
            "Name": "Accounting",
            "ExecSponsor": "Scrooge McDuck",
            "SDM": "",
            "Classification": "Admin",
            "DeptColor": "#FFFFFF"
        }
    ]
}

/department
Method GET
Parameters none
Specific Permission Required Contact Administrator

This URI will return a collection of all departments defined within openDCIM.


/department/:DepartmentID
Method GET
Parameters DepartmentID
Specific Permission Required Contact Adminstrator

This URI will return a collection containing one entity for the department specified by DepartmentID.


API Documentation