.NET Aspire 13.3: Return JSON from resource command
Authorised Territory demonstrates how to return JSON data from a resource command in .NET Aspire 13.3.0 by wiring up a Minimal API project to Aspire orchestration and invoking its endpoints via HTTP commands from the Aspire dashboard.
Overview
The video shows how to:
- Create a Minimal API project.
- Enlist that project into .NET Aspire orchestration.
- Expose two HTTP endpoints from the Minimal API.
- Call those endpoints as HTTP commands from the .NET Aspire dashboard.
- Return JSON data from the resource command so the dashboard command output is structured as JSON.