✨ Add endpoint discovery service for Endpoint Explorer#2
Merged
savannahostrowski merged 37 commits intomainfrom Jan 14, 2026
Merged
✨ Add endpoint discovery service for Endpoint Explorer#2savannahostrowski merged 37 commits intomainfrom
savannahostrowski merged 37 commits intomainfrom
Conversation
Member
Author
buurro
approved these changes
Jan 14, 2026
Member
There was a problem hiding this comment.
Tested locally and works great!
Found a bug, but it will be handled on a separate PR
| /** | ||
| * Finds the main FastAPI app or APIRouter in the list of routers. | ||
| */ | ||
| function findAppRouter(routers: RouterInfo[]): RouterInfo | undefined { |
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.
Closes https://github.com/fastapilabs/cloud/issues/2418 and https://github.com/fastapilabs/cloud/issues/2452
Apologies for the fairly large PR - it's a fairly large component (it's basically the guts of the extension) and I wanted the end result to be something we could play with as a team. The PR is really about ~1700 lines of implementation and then a whole lot of tests/fixtures.
This PR:
Key files to review
Please prioritize 🙏:
src/core/routerResolver.ts- Main entry point, builds the router graph by following importssrc/core/importResolver.ts- Resolves Python imports (relative, absolute, re-exports). This is also probably the most complicated piece IMO.src/core/transformer.ts- Converts router graph to tree view structuresrc/core/extractors/- Individual extractors for decorators, routers, imports, etc.At this point, users can:
defaultPatternsinextension.tsOther considerations
Review order: