GET restapi/personal/person/relations/{personId}/v1
Get list of relations for the person.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| personId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Itslearning.RestApi.Entities.Relation| Name | Description | Type | Additional information |
|---|---|---|---|
| Text |
A text describing the relation between two persons |
string |
None. |
| Items |
Names for items in the relation. The names can be tilte for courses and projects, Name of persons etc. |
Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Text": "sample string 1",
"Items": [
"sample string 1",
"sample string 2"
]
},
{
"Text": "sample string 1",
"Items": [
"sample string 1",
"sample string 2"
]
}
]
application/xml, text/xml
Sample:
<ArrayOfRelation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itslearning.RestApi.Entities">
<Relation>
<Items xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</Items>
<Text>sample string 1</Text>
</Relation>
<Relation>
<Items xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>sample string 1</d3p1:string>
<d3p1:string>sample string 2</d3p1:string>
</Items>
<Text>sample string 1</Text>
</Relation>
</ArrayOfRelation>