feat(equiment): add support for equipment API#88
Merged
Conversation
Changelog: * Add support for Equipment Reports APIs * Add tests
4f2f869 to
94bf8f0
Compare
There was a problem hiding this comment.
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
EquipmentReportsApiClientwith 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog:
Fix #46