GET v1/parking/current-status?parkingLotId={parkingLotId}
Get parkings current status
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| parkingLotId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ParkingLotModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| TotalSpaces | integer |
None. |
|
| OccupiedSpaces | integer |
None. |
|
| FreeSpaces | integer |
None. |
|
| ParkingAreas | Collection of ParkingAreaModel |
None. |
|
| ParkingSpaceTypes | Collection of ParkingSpaceForTypeModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingAreas": [
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
},
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
}
],
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
},
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingAreas": [
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
},
{
"Id": 1,
"Name": "sample string 2",
"TotalSpaces": 3,
"OccupiedSpaces": 4,
"FreeSpaces": -1,
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
}
],
"ParkingSpaceTypes": [
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
},
{
"Type": 1,
"TotalSpaces": 1,
"OccupiedSpaces": 2,
"FreeSpaces": -1
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfParkingLotModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models">
<ParkingLotModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingAreas>
<ParkingAreaModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingAreaModel>
<ParkingAreaModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingAreaModel>
</ParkingAreas>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingLotModel>
<ParkingLotModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingAreas>
<ParkingAreaModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingAreaModel>
<ParkingAreaModel>
<Id>1</Id>
<Name>sample string 2</Name>
<OccupiedSpaces>4</OccupiedSpaces>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingAreaModel>
</ParkingAreas>
<ParkingSpaceTypes>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
<ParkingSpaceForTypeModel>
<OccupiedSpaces>2</OccupiedSpaces>
<TotalSpaces>1</TotalSpaces>
<Type>General</Type>
</ParkingSpaceForTypeModel>
</ParkingSpaceTypes>
<TotalSpaces>3</TotalSpaces>
</ParkingLotModel>
</ArrayOfParkingLotModel>