Repository navigation
Support custom APIs and separately mountable team routes - #184
Merged
Merged
Conversation
dblock
force-pushed
the
feature/api-composition
branch
from
October 25, 2026 19:50
a7264ff to
a408987
Compare
Co-authored-by: Copilot <[email protected]>
dblock
force-pushed
the
feature/api-composition
branch
from
October 25, 2026 19:55
a408987 to
6a6835c
Compare
Danger ReportNo issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
config.apito select a custom Rack/Grape API while retaining the framework’s shared middleware stack. A nil default preserves the existing root and third-party extensions; resetting configuration restores it.Split team routes into separately mountable
TeamsEndpoint::ReadandTeamsEndpoint::Create. ExistingTeamsEndpointmounts both, preserving its routes. Document composing a custom API alongside the defaults, registration-only APIs without public team reads, initialization and Rails reload timing, and the need to explicitly preserve signed Events routes when replacing the root. No authentication system or default visibility change is introduced.Closes #151. Closes #171.
Validation
All API specs pass on Ruby 4.0.9 / Grape 4 with Mongoid 9.1 and Active Record 8.1: 47 examples, 0 failures each. Lint passes. New cases exercise custom routes with shared CORS, reset behavior, hidden list/detail routes, and successful OAuth registration through a creation-only root.
Authored by Copilot (AI), on behalf of @dblock.