dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.87k stars 467 forks source link

WithHttpsCommand extension #6649

Open jmezach opened 3 days ago

jmezach commented 3 days ago

Is there an existing issue for this?

Is your feature request related to a problem? Please describe the problem.

No response

Describe the solution you'd like

During .NET Conf 2024 @DamianEdwards showed a WithHttpsCommand extension method. This allows you to add commands that simply invoke HTTP based API's in your project. This feels like a generally useful extension method that deserves a place in the product.

Additional context

No response

mitchdenny commented 2 days ago

To round out this feature we would need to (optionally) support specifying the endpoint name.

I actually thought it would be interesting to have a model where you could hit a /commands endpoint and get a JSON array of command metadata back and then inject multiple commands into the resource.