Skip to content

Commit

Permalink
Refactor estimates endpoint response structure for clarity and consis…
Browse files Browse the repository at this point in the history
…tency
  • Loading branch information
joao-vasconcelos committed Feb 13, 2025
1 parent 568abaf commit 24cef10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/server/src/endpoints/pips/estimates.endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,35 +140,35 @@ FASTIFY.server.post<RequestSchema>('/pips/estimates', async (request, reply) =>
{
estimatedArrivalTime: '23:59:59',
estimatedDepartureTime: '23:59:59',
estimatedTimeString: '-',
estimatedTimeString: '',
estimatedTimeUnixSeconds: 0,
journeyId: '0000_0_0|teste',
lineId: '0000',
lineId: 'INFO',
observedArrivalTime: null,
observedDepartureTime: null,
observedDriverId: '', // Deprecated
observedVehicleId: '0000',
operatorId: '', // Deprecated
patternId: '0000_0_0',
stopHeadsign: 'Painel inativo, paragem desativada.',
stopHeadsign: 'Paragem desativada.',
stopId: '', // Deprecated
timetabledArrivalTime: '23:59:59',
timetabledDepartureTime: '23:59:59',
},
{
estimatedArrivalTime: '23:59:59',
estimatedDepartureTime: '23:59:59',
estimatedTimeString: '›››',
estimatedTimeString: '',
estimatedTimeUnixSeconds: 0,
journeyId: '0000_0_0|teste',
lineId: '0000',
lineId: 'INFO',
observedArrivalTime: null,
observedDepartureTime: null,
observedDriverId: '', // Deprecated
observedVehicleId: '0000',
operatorId: '', // Deprecated
patternId: '0000_0_0',
stopHeadsign: 'Olá :)',
stopHeadsign: 'Painel inativo.',
stopId: '', // Deprecated
timetabledArrivalTime: '23:59:59',
timetabledDepartureTime: '23:59:59',
Expand Down

0 comments on commit 24cef10

Please sign in to comment.