POST app/contacts/contactsAndDepartments
Service to return a list of Contacts (ServiceCenter/Ejendomskontor) with the connected departments.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of contacts
Collection of ContactDepartmentDTOName | Description | Type | Additional information |
---|---|---|---|
ContactId | string |
None. |
|
ContactName | string |
None. |
|
DepartmentId | string |
None. |
|
DepartmentName | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "contactId": "sample string 1", "contactName": "sample string 2", "departmentId": "sample string 3", "departmentName": "sample string 4" }, { "contactId": "sample string 1", "contactName": "sample string 2", "departmentId": "sample string 3", "departmentName": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfContactDepartmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Services.Domea.Dk.Models.DTO"> <ContactDepartmentDTO> <ContactId>sample string 1</ContactId> <ContactName>sample string 2</ContactName> <DepartmentId>sample string 3</DepartmentId> <DepartmentName>sample string 4</DepartmentName> </ContactDepartmentDTO> <ContactDepartmentDTO> <ContactId>sample string 1</ContactId> <ContactName>sample string 2</ContactName> <DepartmentId>sample string 3</DepartmentId> <DepartmentName>sample string 4</DepartmentName> </ContactDepartmentDTO> </ArrayOfContactDepartmentDTO>