Skip to content

add a feed-version export REST endpoint#511

Merged
irees merged 22 commits intomainfrom
fv-export
Oct 28, 2025
Merged

add a feed-version export REST endpoint#511
irees merged 22 commits intomainfrom
fv-export

Conversation

@drewda
Copy link
Copy Markdown
Member

@drewda drewda commented Oct 13, 2025

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 13, 2025

CLA assistant check
All committers have signed the CLA.

@drewda drewda requested a review from Copilot October 13, 2025 18:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new REST endpoint for exporting feed versions as GTFS zip files with optional transformations. The endpoint supports features like ID prefixing, timezone normalization, shape simplification, and merging multiple feed versions.

  • Adds a new POST endpoint /feed_versions/export with role-based authentication (tl_export_feed_versions)
  • Implements streaming ZIP export functionality with comprehensive transformation options
  • Includes detailed OpenAPI documentation and extensive test coverage

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
server/rest/schema.go Adds export endpoint to handlers list and refactors OpenAPI generation to support both GET and POST operations
server/rest/rest.go Registers the new export endpoint with POST method and role-based authentication
server/rest/openapi.go Extends RequestInfo structure to support POST operations alongside existing GET operations
server/rest/feed_version_export.go Implements the complete export functionality with GraphQL queries, transformations, and streaming ZIP response
server/rest/feed_version_export_test.go Comprehensive test suite covering export scenarios, authorization, error handling, and ZIP validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@irees irees marked this pull request as ready for review October 28, 2025 10:25
@irees irees merged commit 46a9e78 into main Oct 28, 2025
6 checks passed
@irees irees deleted the fv-export branch October 28, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants