Skip to Main Content

California State University, Sacramento

GET api/parking/eco

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

EcoData
NameDescriptionTypeAdditional information
status

integer

None.

data

Collection of ParkingItem

None.

validationErrors

Object

None.

message

Object

None.

code

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": [
    {
      "attributeName": "sample string 1",
      "availableCount": 2,
      "noDataCount": 3,
      "obscuredCount": 4,
      "occupiedCount": 5,
      "timestamp": "2024-12-26T11:37:59.4423501-08:00",
      "totalCount": 7,
      "utilizedPercent": 8.1
    },
    {
      "attributeName": "sample string 1",
      "availableCount": 2,
      "noDataCount": 3,
      "obscuredCount": 4,
      "occupiedCount": 5,
      "timestamp": "2024-12-26T11:37:59.4423501-08:00",
      "totalCount": 7,
      "utilizedPercent": 8.1
    }
  ],
  "validationErrors": {},
  "message": {},
  "code": {}
}

application/xml, text/xml

Sample:
<EcoData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProxyingDataProvider.Models.Eco">
  <Code />
  <Data>
    <ParkingItem>
      <AttributeName>sample string 1</AttributeName>
      <AvailableCount>2</AvailableCount>
      <NoDataCount>3</NoDataCount>
      <ObscuredCount>4</ObscuredCount>
      <OccupiedCount>5</OccupiedCount>
      <Timestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2024-12-26T19:37:59.4423501Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>-480</d4p1:OffsetMinutes>
      </Timestamp>
      <TotalCount>7</TotalCount>
      <UtilizedPercent>8.1</UtilizedPercent>
    </ParkingItem>
    <ParkingItem>
      <AttributeName>sample string 1</AttributeName>
      <AvailableCount>2</AvailableCount>
      <NoDataCount>3</NoDataCount>
      <ObscuredCount>4</ObscuredCount>
      <OccupiedCount>5</OccupiedCount>
      <Timestamp xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:DateTime>2024-12-26T19:37:59.4423501Z</d4p1:DateTime>
        <d4p1:OffsetMinutes>-480</d4p1:OffsetMinutes>
      </Timestamp>
      <TotalCount>7</TotalCount>
      <UtilizedPercent>8.1</UtilizedPercent>
    </ParkingItem>
  </Data>
  <Message />
  <Status>1</Status>
  <ValidationErrors />
</EcoData>