API: Department Record Resource
Resource URI
https://directory.unl.edu/departments/{id}|{org_unit}?format={format}
Get details about a department
Example
GET https://directory.unl.edu/departments/362?format=json
Resource Properties
Property | Description |
---|---|
name | Name of this deparmtnet/unit |
org_unit | Official org unit ID from SAP |
Response
null
GET https://directory.unl.edu/departments/362?format=xml
Resource Properties
Property | Description |
---|---|
department | The department element, which contains 'parent' and 'child' children elements. |
parent | A link to the parent department the link is available in the xlink:href attribute |
child | A link to the child department, the link is available in the xlink:href attribute (there can be many of these) |
Response
<?xml version="1.0" encoding="utf-8"?>
<unl xmlns="https://wdn.unl.edu/xml" xmlns:xlink="https://www.w3.org/1999/xlink">
<department id="362">
<parent xlink:href="https://directory.unl.edu/departments/2?format=xml" />
<child xlink:href="https://directory.unl.edu/departments/4042?format=xml" />
<child xlink:href="https://directory.unl.edu/departments/5978?format=xml" />
<child xlink:href="https://directory.unl.edu/departments/4054?format=xml" />
<child xlink:href="https://directory.unl.edu/departments/4064?format=xml" />
<child xlink:href="https://directory.unl.edu/departments/371?format=xml" />
</department>
</unl>
GET https://directory.unl.edu/departments/362?format=partial
Response
Sorry, we could not get a sample for you.
Format Information
The following is a list of formats used in Directory.
- JSON (JavaScript Object Notation)
- XML (Extensible Markup Language)
- Partial - The un-themed main content area of the page.