Skip to content

New feature: validator API service #2047

@themightychris

Description

@themightychris

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:

  1. Contribution to MobilityData/gtfs-validator: refactor web/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
  2. Contribution to MobilityData/gtfs-validator: add something like the separate minimal API service I built somewhere else in the tree
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature request or improvement on an existing featurestatus: Needs triageApplied to all new issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions