Skip to content

feat(equiment): add support for equipment API#88

Merged
jonperron merged 1 commit intomainfrom
feat/equipment_endpoint
Nov 10, 2025
Merged

feat(equiment): add support for equipment API#88
jonperron merged 1 commit intomainfrom
feat/equipment_endpoint

Conversation

@jonperron
Copy link
Owner

@jonperron jonperron commented Nov 10, 2025

Changelog:

  • Add support for Equipment Reports APIs
  • Add tests

Fix #46

Changelog:
* Add support for Equipment Reports APIs
* Add tests
@jonperron jonperron force-pushed the feat/equipment_endpoint branch from 4f2f869 to 94bf8f0 Compare November 10, 2025 13:52
@jonperron jonperron requested a review from Copilot November 10, 2025 13:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for equipment reports in the Navitia API client, enabling users to query the availability status of accessibility equipment such as elevators and escalators at transit stops.

Key Changes:

  • Implements a new EquipmentReportsApiClient with methods to list equipment reports by region and resource path
  • Adds data models for equipment report entities including availability status, periods, and stop area equipment details
  • Adds test coverage for the new API client and JSON test data

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
navitia_client/client/apis/equipment_report_apis.py New API client for equipment reports with two list methods
navitia_client/client/navitia_client.py Adds equipment_reports property to expose the new client
navitia_client/entities/equipment_reports.py Defines EquipmentReports entity with from_payload factory method
navitia_client/entities/equipment.py Extends equipment entities with Label, Period, and from_payload methods; fixes typo in StopAreaEquipments
tests/client/apis/test_equipment_report_apis.py Unit tests for the equipment reports API client
tests/test_data/equipment_reports.json Sample JSON response data for testing
tests/test_navitia_client.py Integration test for equipment_reports client property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jonperron jonperron merged commit 1613f8f into main Nov 10, 2025
11 checks passed
@jonperron jonperron deleted the feat/equipment_endpoint branch November 10, 2025 13:56
@jonperron jonperron added this to the 1.3.0 milestone Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for equipment reports API

1 participant