Add providers to the GTFS feed response
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
Hướng nghiên cứu
Start by locating the GET /v1/gtfs_feeds/{id} response schema and the code that assembles a feed from its latest dataset. Trace how published agency and publisher records are linked, and check the endpoint’s existing tests. Done means the response includes the specified feed_providers array, including an empty array when none are published, while existing fields remain unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the problem
Agencies and publishers linked to a feed (from its latest dataset's agency.txt and feed_info.txt) are not exposed. API consumers only get the free-text provider field, which does not tell them who operates or publishes a feed, or how to contact them.
Proposed solution
- Add an optional
feed_providersarray to theGET /v1/gtfs_feeds/{id}response. - Each item returns the provider's
id,name,role(agencyorpublisher), name aliases and contacts (website, email, phone). - Only providers with
status=publishedare returned. - Additive only: the existing
providerfield is unchanged. Its description clarifies that it is the curated display name, whilefeed_providerslists the linked provider records. - Wording: no "canonical" in fields or descriptions.
Acceptance criteria:
- A feed with no published providers returns an empty
feed_providersarray. - Existing response fields are unchanged.
Alternatives you've considered
- A separate
/v1/gtfs_feeds/{id}/feed_providersendpoint: rejected, providers belong to the feed resource. - Exposing raw
agency.txt/feed_info.txtper dataset: out of scope, dataset-level data is not public for now.
Additional context
- Ngôn ngữ chính
- Python
- Star
- 34
- Fork
- 7
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MobilityData/mobility-feed-api
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#836 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MobilityData/mobility-feed-api
Issue tương tự
-
backend enhancement priority:P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
geolens-io/geolens#4161 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pkg:clai2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
pydantic/pydantic-ai#14845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a languageĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
LearningCircuit/local-deep-research#9272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
patrickballard/wheelgap#783 ·