List
Returns XML containing a list of all coworkers at the company with the role "Consultant"
End point
/consultantapi/listRequest format
GETResponse Messages
The method will return an XML containing all matching coworkers, following this XSD:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="consultants">
<xs:complexType>
<xs:sequence>
<xs:element name="consultant" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:integer" name="id"/>
<xs:element type="xs:string" name="firstname"/>
<xs:element type="xs:string" name="lastname"/>
<xs:element type="xs:string" name="email"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Example Request
/api/consultantapi/List
This will return all coworkers at the company with the role "Consultant"
Example Response
<consultants>
<consultant>
<id>36794</id>
<firstname>John</firstname>
<lastname>Doe</lastname>
<email>john@acme.com</email>
</consultant>
<consultant>
<id>36799</id>
<firstname>Maria</firstname>
<lastname>Hill</lastname>
<email>maria@acme.com</email>
</consultant>
</consultants>