Skip to content

Add occupiedSince property to ElectricityStationOccupancyResponse and remove attendees from ElectricityStationsOccupancyResponse #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions lsis-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
openapi: 3.0.3
info:
title: LSIS API (REST)
version: 0.0.11
version: 0.0.12
description: |
This API enables on-demand querying of station occupancy through RESTful services.

Expand All @@ -30,6 +30,11 @@ info:
- types of error response properties are made more explicit.
- Change urls to be compliant with NBility model.
- Change securitySchemes to oAuth2. (The tokenUrl and refreshUrl are unknown at this moment).

**Version 0.0.12**
- Add missing `occupiedSince` property to `ElectricityStationOccupancyResponse`
- The `attendees` array should now be populated when the station is occupied and when retrieving
the occupancies of all stations via the `/occupancy` endpoint.
contact:
name: LSIS Support
email: support@landelijksis.net
Expand Down Expand Up @@ -81,8 +86,7 @@ paths:
get:
summary: Retrieve occupancy of all electricity stations
description: |
REST/JSON API-endpoint for global attendance on all caller visible stations.
Note that attendees are only available for individual stations.
REST/JSON API-endpoint for global attendance on all caller visible stations.
operationId: getAllStationsOccupancy
parameters:
- name: occupied
Expand Down Expand Up @@ -279,6 +283,11 @@ components:
occupied:
type: boolean
description: Whether the station is occupied
occupiedSince:
type: string
format: date-time
description: Date and time the station became occupied.
<p><b>Note:</b> This value is only required when the `occupied` is true.</p>
externalIds:
type: array
items:
Expand Down