GET v1/occupation/list-occupation?momentDate={momentDate}&page={page}&pageSize={pageSize}
Get list with spaces active and her occupation.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| momentDate |
date occupation |
date |
None. |
| page | integer |
None. |
|
| pageSize | integer |
None. |
Body Parameters
None.
Response Information
Resource Description
return list with space active
Collection of SpaceOccupationActiveModel| Name | Description | Type | Additional information |
|---|---|---|---|
| spaceModel | SpaceOccupationsModel |
None. |
|
| occupation | Dictionary of CountingType [key] and integer [value] |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"spaceModel": {
"Id": 1,
"Name": "sample string 2",
"Active": true
},
"occupation": {
"Person": 1
}
},
{
"spaceModel": {
"Id": 1,
"Name": "sample string 2",
"Active": true
},
"occupation": {
"Person": 1
}
}
]
application/xml, text/xml
Sample:
<ArrayOfSpaceOccupationActiveModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models">
<SpaceOccupationActiveModel>
<occupation xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfCountingTypelongJUYo7eRB>
<d3p1:Key>Person</d3p1:Key>
<d3p1:Value>1</d3p1:Value>
</d3p1:KeyValueOfCountingTypelongJUYo7eRB>
</occupation>
<spaceModel>
<Active>true</Active>
<Id>1</Id>
<Name>sample string 2</Name>
</spaceModel>
</SpaceOccupationActiveModel>
<SpaceOccupationActiveModel>
<occupation xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfCountingTypelongJUYo7eRB>
<d3p1:Key>Person</d3p1:Key>
<d3p1:Value>1</d3p1:Value>
</d3p1:KeyValueOfCountingTypelongJUYo7eRB>
</occupation>
<spaceModel>
<Active>true</Active>
<Id>1</Id>
<Name>sample string 2</Name>
</spaceModel>
</SpaceOccupationActiveModel>
</ArrayOfSpaceOccupationActiveModel>