Commit Graph

145 Commits

Author SHA1 Message Date
Fred Boniface a865410b31 Bugfix: Unauthorised request to /timetable/train routes caused crash
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-15 19:59:50 +01:00
Fred Boniface df0eb0451f Fix ECS PIS Code missing
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-13 20:36:12 +01:00
Fred Boniface 6498f68bdf Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-13 19:27:35 +01:00
Fred Boniface 3818bc5d62 timetable: findByHeadcode now only returns enough data to give user a list of services which can then be expanded by using findByTrainUid
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-12 23:18:32 +01:00
Fred Boniface 86e5c34e7f Bugfix: Cases where operator does not exist
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-11 22:43:34 +01:00
Fred Boniface 24b882ce5f Bugfix: PIS Codes not being found for GW services
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-11 22:33:25 +01:00
Fred Boniface e79985cb5a Fix CORS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-09 07:37:21 +01:00
Fred Boniface 6cbf91c775 Update CORS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-09 07:18:22 +01:00
Fred Boniface 6a40ff90d0 Update returned LDBSV results to 40
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-08 19:20:39 +01:00
Fred Boniface 681cf873dd Update CORS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-08 18:57:41 +01:00
Fred Boniface 08de9bcbc1 Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-08 18:41:09 +01:00
Fred Boniface 69f72dfff1 Return unauthorised at the controller level rather than at middleware level
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-08 18:39:24 +01:00
Fred Boniface 12753d76a1 Add isAuthed to request objects
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-08 18:20:20 +01:00
Fred Boniface 45d0e0a2c0 Only return 'Not in Service' code 0015 for GW services
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-02 21:18:44 +01:00
Fred Boniface ea8dd65a8d Temporary fix:
- Do not check 'operator' before PIS lookup - the timetable data does not yet contain the operator key

Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-01 22:29:30 +01:00
Fred Boniface 27794feb41 Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-01 21:40:29 +01:00
Fred Boniface ce3033c455 Ensure services is always an array
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-01 21:40:06 +01:00
Fred Boniface cf87c1a2b6 Re-implement `ensureArray`
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-07-01 21:08:15 +01:00
Fred Boniface 49ad201522 Fix stats API
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-28 14:06:31 +01:00
Fred Boniface 55b854a592 Add /misc/server/statistics route
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-28 13:36:47 +01:00
Fred Boniface 07a0dd6f28 Update authed endpoints
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 22:37:01 +01:00
Fred Boniface ab8db7bd06 Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 22:35:12 +01:00
Fred Boniface a324c6fc63 Add /misc/server/versions
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 22:26:47 +01:00
Fred Boniface 3682ca51d8 Bump version number
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 16:23:19 +01:00
Fred Boniface 04a3915b6c Adjust for legacy issues
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 16:03:03 +01:00
Fred Boniface d46a97ffa5 Adjust issue code to account for labels
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-26 16:02:42 +01:00
Fred Boniface 72444e9fc9 v2 user routes complete
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-20 21:47:32 +01:00
Fred Boniface eb80d7386e Add /api/v2/user/...
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-20 19:51:15 +01:00
Fred Boniface a4d82b0aa7 Implement train and timetable
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-19 21:34:14 +01:00
Fred Boniface 199a1760b7 Fix reasonCode endpoint
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-18 21:28:25 +01:00
Fred Boniface 34d00ad16f /api/v2/ref now available
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-17 23:04:42 +01:00
Fred Boniface a04570c9e4 /api/v2/pis Ready to go
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-17 22:14:58 +01:00
Fred Boniface 06259e3d9f Enable CORS from any origin
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-17 21:53:36 +01:00
Fred Boniface e4255e9cbf Enable CORS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-13 13:46:01 +01:00
Fred Boniface f0b8e46007 Update reasonCode endpoints to read from DB rather than API
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-12 18:28:28 +01:00
Fred Boniface 4916c377c6 Add endpoints for LDBSVWS 2023-06-11 21:43:01 +01:00
Fred Boniface 43fd6db4b9 Prepare for LDBSV 2023-06-11 19:42:39 +01:00
Fred Boniface aab3e00eac Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-08 21:32:52 +01:00
Fred Boniface e7f6463689 Bump version
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 21:59:35 +01:00
Fred Boniface 5baaa5bef2 Update npm modules
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 21:57:51 +01:00
Fred Boniface 849c31af36 Add eslint rule: max line length (80)
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 21:53:56 +01:00
Fred Boniface 66b2ba002b Find by headcode is ready
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 21:27:28 +01:00
Fred Boniface c0f0591866 Furhter work on trainSErvice endpoint
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 12:05:35 +01:00
Fred Boniface d879d544fe eslint fixes
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 11:46:41 +01:00
Fred Boniface c4b3be9086 Continued work on filtering train service data
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 11:23:30 +01:00
Fred Boniface dc583a4632 Work on trainService data processing
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-07 01:18:02 +01:00
Fred Boniface a1afa9cddc Add to train parsing function 2023-06-06 22:08:30 +01:00
Fred Boniface 574d232867 Groundwork for filtering services based on STP indicator 2023-06-04 18:56:42 +01:00
Fred Boniface 39dd93edb5 Remove 'publicStops' part of returning train data
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-02 00:48:44 +01:00
Fred Boniface 524e9b271d Add find by headcode including PIS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-06-01 12:40:43 +01:00