Create C# Minimal API
When to Use
- When initializing the C# migration project
- When adding the next C# endpoint
- When introducing DTOs or services to support parity
- When wiring weather.json data into the C# application
Procedure
- Confirm the specific endpoint or scope to implement.
- Read the Python source and related tests first.
- Review the checklist in project-checklist.
- Generate or edit only the minimum required C# files.
- Stop after a small milestone and suggest the narrowest validation step.
Rules
- Use ASP.NET Core Minimal APIs.
- Keep changes incremental and reviewable.
- Prefer
System.Text.Jsonfor JSON handling. - Avoid broad rewrites when only one endpoint is being added.
- Preserve response behavior unless the task explicitly allows change.
Output
- Files created or edited
- Scope implemented
- Remaining TODOs
- Recommended validation command
Source: microsoft/aitour26-WRK541-real-world-code-migration-with-github-copilot-agent-mode — distributed by TomeVault.