-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Describe the problem
For a recent demo, I needed to be able to run the the validator as a service and execute validations through synchronous API calls.
I initially tried to just add a /validate
endpoint to do the job to the existing spring server under web/service
but that quickly became a rabbit hole because I wanted to be able to run this without all the Google infrastructure for storing data and doing pub/sub and be able to build it entirely within a container and found that project to be very far from being set up for that. I ended up just building a bare-bones spring server under /api
that only exposed the /validate
endpoint
Proposed solution
If I end up building this thing for real, I'll want to move away from working out of a fork so there won't be any barrier to the API moving to new validator versions. I'm interested in the community/maintainer opinions on the best route:
- Contribution to
MobilityData/gtfs-validator
: refactorweb/service
so that it can build entirely in a container and so that the GCP services are an optional dependency for the job-oriented endpoints, and add the/validate
endpoint to it - Contribution to
MobilityData/gtfs-validator
: add something like the separate minimal API service I built somewhere else in the tree - Just build a separate repo and publish it either under my own org or contribute it to the MobilityData org the defines the API service and consumes the validator JAR
Alternatives you've considered
No response
Additional context
No response