Add providers to the GTFS feed response

Aperta
#1,910 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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_providers array to the GET /v1/gtfs_feeds/{id} response.
  • Each item returns the provider's id, name, role (agency or publisher), name aliases and contacts (website, email, phone).
  • Only providers with status=published are returned.
  • Additive only: the existing provider field is unchanged. Its description clarifies that it is the curated display name, while feed_providers lists the linked provider records.
  • Wording: no "canonical" in fields or descriptions.

Acceptance criteria:

  • A feed with no published providers returns an empty feed_providers array.
  • Existing response fields are unchanged.
Alternatives you've considered
  • A separate /v1/gtfs_feeds/{id}/feed_providers endpoint: rejected, providers belong to the feed resource.
  • Exposing raw agency.txt / feed_info.txt per dataset: out of scope, dataset-level data is not public for now.
Additional context
Lingua principale
Python
Stelle
34
Fork
7
Merge medio
2g 22h
PR unite (30g)
21

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MobilityData/mobility-feed-api

Tutte le issue di MobilityData/mobility-feed-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.