Skip to content

Commit

Permalink
refactor: add paginated: false to all list methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Aug 20, 2024
1 parent b643c6d commit e466d7f
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions stainless-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ resources:

vehicles_for_agency:
methods:
list: get /api/where/vehicles-for-agency/{agencyID}.json
list:
endpoint: get /api/where/vehicles-for-agency/{agencyID}.json
paginated: false

config:
methods:
Expand All @@ -30,19 +32,25 @@ resources:

stops_for_location:
methods:
list: get /api/where/stops-for-location.json
list:
endpoint: get /api/where/stops-for-location.json
paginated: false

stops_for_route:
methods:
list: get /api/where/stops-for-route/{routeID}.json
list:
endpoint: get /api/where/stops-for-route/{routeID}.json
paginated: false

stop:
methods:
retrieve: get /api/where/stop/{stopID}.json

stop_ids_for_agency:
methods:
list: get /api/where/stop-ids-for-agency/{agencyID}.json
list:
endpoint: get /api/where/stop-ids-for-agency/{agencyID}.json
paginated: false

schedule_for_stop:
methods:
Expand All @@ -54,23 +62,31 @@ resources:

route_ids_for_agency:
methods:
list: get /api/where/route-ids-for-agency/{agencyID}.json
list:
endpoint: get /api/where/route-ids-for-agency/{agencyID}.json
paginated: false

routes_for_location:
methods:
list: get /api/where/routes-for-location.json
list:
endpoint: get /api/where/routes-for-location.json
paginated: false

routes_for_agency:
methods:
list: get /api/where/routes-for-agency/{agencyID}.json
list:
endpoint: get /api/where/routes-for-agency/{agencyID}.json
paginated: false

schedule_for_route:
methods:
retrieve: get /api/where/schedule-for-route/{routeID}.json

arrival_and_departure:
methods:
list: get /api/where/arrivals-and-departures-for-stop/{stopID}.json
list:
endpoint: get /api/where/arrivals-and-departures-for-stop/{stopID}.json
paginated: false
retrieve: get /api/where/arrival-and-departure-for-stop/{stopID}.json

trip:
Expand All @@ -79,7 +95,9 @@ resources:

trips_for_location:
methods:
list: get /api/where/trips-for-location.json
list:
endpoint: get /api/where/trips-for-location.json
paginated: false

trip-details:
methods:
Expand All @@ -91,7 +109,9 @@ resources:

trips_for_route:
methods:
list: get /api/where/trips-for-route/{routeID}.json
list:
endpoint: get /api/where/trips-for-route/{routeID}.json
paginated: false

report_problem_with_stop:
methods:
Expand Down

0 comments on commit e466d7f

Please sign in to comment.