Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoints Explorer Support #539

Open
ardalis opened this issue Nov 16, 2023 · 10 comments
Open

Endpoints Explorer Support #539

ardalis opened this issue Nov 16, 2023 · 10 comments
Labels
enhancement New feature or request pending investigation this issue is queued up to be investigted

Comments

@ardalis
Copy link
Collaborator

ardalis commented Nov 16, 2023

By default Fast Endpoints endpoints don't appear to be automatically discovered by VS 2022's Endpoints Explorer. I'm not sure if there's anything we can do or if we need to relay on Visual Studio to address this but we should track it.

@dj-nitehawk
Copy link
Member

i couldn't find any info/docs about how VS actually discovers the endpoints. most definitely not by looking at the endpoint data sources in memory, otherwise it would have shown up. most likely by static analysis looking for .Map*() methods in the source code like how their new request delegate generator discovers endpoints.

rider on the otherhand picks up endpoints when i give it the location of the swagger.json file.

maybe there's a way to get VS to do the same via swagger.json?

will do more digging around but since VS is closed source, doubt we'd have much luck.

@dj-nitehawk dj-nitehawk added enhancement New feature or request pending investigation this issue is queued up to be investigted labels Nov 16, 2023
@ardalis
Copy link
Collaborator Author

ardalis commented Nov 16, 2023

If nothing else it should pick up requests from .http files but it doesn't do that, either. You can apparently create .http files from Endpoints Explorer but not the other way around. So far (because I always use endpoints) I haven't found Endpoints Explorer to be at all useful...

@dj-nitehawk
Copy link
Member

yeah even in rider I don't find myself using the endpoint explorer ever. just like to work with .http files or swagger ui for quick testing of endpoints. postman doesnt even get much action from me anymore 😋

anyway let's keep this issue open and implement it as a "nice to have" feature if we can figure something out without having to invest too much energy in to it.

@ardalis
Copy link
Collaborator Author

ardalis commented Nov 18, 2023

Right. I'm hoping we can get the Visual Studio team to figure out how to detect our endpoints.

@dj-nitehawk
Copy link
Member

yeah that would be great...
know anyone on the VS team we could talk to?
otherwise, i'm not even sure where to go for logging a feature request.

@ardalis
Copy link
Collaborator Author

ardalis commented Nov 20, 2023

There are already some open VS feature requests linked from this similar issue:
ardalis/ApiEndpoints#196

Specifically:
ardalis/ApiEndpoints#196 (comment)

Feel free to upvote them, everyone!

@ardalis
Copy link
Collaborator Author

ardalis commented Dec 6, 2023

@dj-nitehawk
Copy link
Member

See: https://developercommunity.visualstudio.com/t/Detect-Fast-Endpointscom-Endpoints-in-E/10535339?port=1025&fsid=5f6dc153-7fd0-4649-9ad7-37273c8a6ecf

everyone who's interested in seeing FE endpoints in VS endpoints explorer, please go vote/comment on this issue.

@frasermclean
Copy link

Not sure if it's related, but Rider also cannot detect any Fast Endpoints endpoints

@dj-nitehawk
Copy link
Member

@frasermclean rider does pick up swagger.json files if you drop it in the project directory.
you can export the swagger.json files with a cli command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending investigation this issue is queued up to be investigted
Development

No branches or pull requests

3 participants