Skip to content

Commit

Permalink
feat(api): update trip resource endpoint to use trip_id parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Jul 5, 2024
1 parent 6fce548 commit 505ac28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onebusaway/resources/trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def retrieve(
if not trip_id:
raise ValueError(f"Expected a non-empty value for `trip_id` but received {trip_id!r}")
return self._get(
f"/api/where/trip/tripID.json",
f"/api/where/trip/{trip_id}.json",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down Expand Up @@ -99,7 +99,7 @@ async def retrieve(
if not trip_id:
raise ValueError(f"Expected a non-empty value for `trip_id` but received {trip_id!r}")
return await self._get(
f"/api/where/trip/tripID.json",
f"/api/where/trip/{trip_id}.json",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down

0 comments on commit 505ac28

Please sign in to comment.