컨트롤러 또는 Minimal API를 사용하여 적절한 HTTP 의미론과 OpenAPI 문서를 갖춘 ASP.NET Core Web API 엔드포인트를 생성하고 수정하도록 안내합니다.
- GitHub 스타
- 5,942
- 파일
- 1
- 마지막 커밋
- 2026년 11월 11일
- 라이선스
- MIT
- 허용된 도구
- —
dotnet-webapi skill은 무엇을 하나요?
dotnet-webapi은(는) agent skill입니다. 컨트롤러 또는 Minimal API를 사용하여 적절한 HTTP 의미론과 OpenAPI 문서를 갖춘 ASP.NET Core Web API 엔드포인트를 생성하고 수정하도록 안내합니다.
skill의 SKILL.md에서 생성된 요약입니다.
dotnet-webapi skill 정보
ASP.NET Core Web API 엔드포인트를 개발하고 개선하는 것이 이 SKILL의 주요 기능입니다. 개발자가 컨트롤러 기반 아키텍처와 Minimal API를 모두 구현할 수 있도록 지원하며, 적절한 HTTP 의미론과 상태 코드 컨벤션을 준수하도록 돕습니다. 이 SKILL은 sealed record를 사용한 구조화된 요청 및 응답 DTO 생성, OpenAPI 문서 구성, 중앙 집중식 오류 처리 미들웨어 설정에 집중합니다.
에이전트가 새로운 API 라우트를 추가하거나, Swagger 메타데이터를 연결하거나, 테스트를 위한 .http 파일을 생성하는 작업을 수행할 때 이 SKILL을 로드해야 합니다. 스타일 일관성을 유지하기 위해 Program.cs 및 기존 컨트롤러와 같은 기존 프로젝트 구조를 검사하는 방식을 사용합니다. 이 SKILL은 HTTP API 개발을 위해 특별히 설계되었으며, EF Core 쿼리 최적화, 일반적인 C# 리팩터링 또는 실시간 SignalR 허브 구축에는 사용하지 마십시오.
agent가 수행할 수 있는 작업
- 1새로운 API 엔드포인트 추가현재 프로젝트 스타일에 따라 기존 컨트롤러 패턴 또는 Minimal API를 사용하여 새로운 엔드포인트를 생성합니다.
- 2레코드를 사용한 DTO 구현데이터 무결성을 보장하기 위해 sealed record를 사용하여 불변 요청 및 응답 타입을 생성합니다.
- 3OpenAPI 문서 구성API 엔드포인트를 쉽게 찾을 수 있도록 OpenAPI 메타데이터와 문서를 설정합니다.
- 4API 테스트 파일 설정새로 생성된 API 엔드포인트의 요청 기반 테스트를 용이하게 하기 위해 .http 파일을 생성합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
dotnet-webapi skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 dotnet-webapi skill 설치
/plugin marketplace add dotnet/skills /plugin install dotnet-aspnetcore@dotnet-agent-skills
Claude Code에 dotnet-webapi skill 설치
~/.claude/skills/dotnet-webapi/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi ~/.claude/skills/dotnet-webapiClaude Code (project)에 dotnet-webapi skill 설치
.claude/skills/dotnet-webapi/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi .claude/skills/dotnet-webapiCodex에 dotnet-webapi skill 설치
~/.agents/skills/dotnet-webapi/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi ~/.agents/skills/dotnet-webapiGemini CLI에 dotnet-webapi skill 설치
~/.gemini/skills/dotnet-webapi/SKILL.md
$ npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi ~/.gemini/skills/dotnet-webapiClaude.ai에 dotnet-webapi skill 설치
npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi dotnet-webapi && zip -r dotnet-webapi.zip dotnet-webapi # claude.ai → Customize → Skills → + → Create skill → Upload a skill → dotnet-webapi.zip
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 보안 감사는 아닙니다. 에이전트가 실행하기 전에 스크립트를 읽어 보세요. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi is public and reachablegithub.com/dotnet/skills/tree/HEAD/plugins/dotnet-aspnetcore ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-11-11github.com/dotnet/skills/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음No scripts in the skill folder통과
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/dotnet/skills/blob/HEAD/plugins/dotnet-aspnetcore ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/dotnet/skills/blob/HEAD/plugins/dotnet-aspnetcore ↗통과
- SKILL.md가 Agent Skills 형식을 따름SKILL.md is 507 lines; the spec suggests under 500github.com/dotnet/skills/blob/HEAD/plugins/dotnet-aspnetcore ↗결함 발견
SKILL.md
GitHub에서 보기ASP.NET Core Web API
Produce well-structured ASP.NET Core Web API endpoints with proper HTTP semantics, OpenAPI documentation, and error handling.
When to Use
Use this skill when working on ASP.NET Core HTTP APIs, including:
- adding or modifying Web API endpoints implemented with controllers or minimal APIs;
- wiring up OpenAPI/Swagger metadata and endpoint documentation;
- defining request/response DTOs and consistent HTTP status code behavior;
- adding
.httpfiles or similar request-based API testing artifacts; - configuring centralized API error handling middleware or exception mapping.
When Not to Use
Do not use this skill for:
- general C# coding style or non-API refactoring;
- EF Core data modeling or query optimization work; use
optimizing-ef-core-queries; - frontend, Razor, or Blazor UI changes;
- gRPC services;
- SignalR hubs or real-time messaging flows.
Inputs / prerequisites
Before applying this skill, gather the project context needed to match the existing API style and wiring:
- the ASP.NET Core entry point, typically
Program.cs; - any existing controllers, especially classes inheriting
ControllerBaseor using[ApiController]; - any existing minimal API registrations such as
app.MapGet,app.MapPost,app.MapPut, orapp.MapDelete; - related DTO, model, validation, and error-handling types already used by the project;
- available build, run, and test commands so changes can be verified.
If the user asks for a new endpoint, inspect the current project structure first so the implementation follows the established conventions rather than mixing styles.
Workflow
Step 1: Determine the API style
Scan the project for existing endpoint patterns before writing any code.
- Search for classes inheriting
ControllerBaseor decorated with[ApiController]. - Search
Program.csor endpoint files forapp.MapGet,app.MapPost, etc. - If the project already uses controllers, continue with controllers.
- If the project already uses minimal APIs, continue with minimal APIs.
- If neither exists (new project), default to minimal APIs unless the user explicitly requests controllers.
Do not mix styles in the same project.
Step 2: Define request and response types
Create dedicated types for API input and output. Never expose EF Core entities directly in request or response bodies.
Use sealed record for all DTOs. Records enforce immutability, provide
value-based equality, and produce concise code. Seal them to prevent unintended
inheritance and enable JIT devirtualization (CA1852).
Naming convention:
| Role | Convention | Example |
|---|---|---|
| Input (create) | Create{Entity}Request |
CreateProductRequest |
| Input (update) | Update{Entity}Request |
UpdateProductRequest |
| Output (single) | {Entity}Response |
ProductResponse |
| Output (list) | {Entity}ListResponse |
ProductListResponse |
XML doc comments on all DTOs: Add <summary> XML doc comments to every
request and response type exposed in the API. These comments are automatically
included in the generated OpenAPI specification, producing richer documentation
without extra metadata calls.
Reference: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/openapi-comments
Date and time values — use DateTimeOffset: When a DTO includes a date or
time property, always use DateTimeOffset instead of DateTime.
DateTimeOffset preserves the UTC offset, avoids ambiguous timezone
conversions, and serializes to ISO 8601 with offset information in JSON — which
is what API consumers expect.
Reference: https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset JSON serialization options — preserve existing behavior by default: For existing APIs, do not introduce stricter serialization/deserialization settings unless the project already uses them or the user explicitly asks for them. Settings such as case-sensitive property matching and strict number handling can break existing clients. For new projects, or when strict JSON handling is explicitly requested, configure options like the following to minimize the potential of processing malicious requests:
// Apply these settings only for new projects, when the existing project already
// uses them, or when the user explicitly requests stricter JSON behavior.
builder.Services.ConfigureHttpJsonOptions(options =>
{
// disallow reading numbers from JSON strings
options.SerializerOptions.NumberHandling = JsonNumberHandling.Strict;
// match properties with exact casing during deserialization
options.SerializerOptions.PropertyNameCaseInsensitive = false;
// reject duplicate JSON property names during deserialization
options.SerializerOptions.AllowDuplicateProperties = false;
// omit null properties from serialized output
options.SerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
});
Enum properties — serialize as strings by default: Unless the user
explicitly requests integer serialization, all enum properties should be
serialized as strings. String-serialized enums are human-readable, less fragile
when values are reordered, and produce better OpenAPI documentation. See Step 4
for the JsonStringEnumConverter configuration.
Response DTOs — use positional sealed records for concise, immutable output:
/// <summary>Represents a product returned by the API.</summary>
public sealed record ProductResponse(
int Id,
string Name,
decimal Price,
Category Category,
bool IsAvailable,
DateTimeOffset CreatedAt);
Request DTOs — use sealed records with init properties so data annotations
work naturally:
/// <summary>Payload for creating a new product.</summary>
public sealed record CreateProductRequest
{
[Required, MaxLength(200)]
public required string Name { get; init; }
[Range(0.01, 999999.99)]
public required decimal Price { get; init; }
public required Category Category { get; init; }
}
Follow the same pattern for Update{Entity}Request records, adding any
additional properties the update requires (e.g., IsAvailable).
Minimal API validation — register explicitly: Data-annotation validation
([Required], [MaxLength], [Range], etc.) is automatic in MVC controllers,
but minimal APIs require explicit opt-in. For .NET 10+ projects using minimal
APIs, add the validation services in Program.cs:
builder.Services.AddValidation();
This wires up an endpoint filter that validates parameters decorated with data
annotations before the handler executes, returning a 400 Bad Request with a
validation problem details response on failure.
Reference: https://learn.microsoft.com/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-10.0
Do not use mutable classes ({ get; set; }) for DTOs. Mutable DTOs allow
accidental modification after construction and lose the self-documenting
immutability that records provide.
Step 3: Implement the endpoints
Whether using controllers or minimal APIs, follow these HTTP conventions consistently.
Organizing minimal API endpoints: For projects using minimal APIs, organize
endpoints by resource using static classes with a static Map<Resource> method.
This pattern keeps endpoint definitions grouped by resource type, making the
code more maintainable and easier to navigate as the API grows.
Pattern structure:
- Create one static class per resource (e.g.,
ProductEndpoints,CategoryEndpoints). - Define a static
Map<Resource>(this WebApplication app)extension method. - Inside the method, call
MapGet,MapPost,MapPut,MapDelete, etc. for that resource's endpoints. - In
Program.cs, call each resource'sMapmethod in order.
Minimal API return types — prefer TypedResults:
Always prefer TypedResults over the Results factory. TypedResults embeds
response type information in the method signature, giving the OpenAPI generator
richer metadata automatically.
When a handler returns multiple result types (e.g., Ok or NotFound),
annotate the lambda with an explicit Results<T1, T2> return type. This
lets you use TypedResults while still giving the compiler a common type:
async Task<Results<Ok<ProductResponse>, NotFound>> (int id, ...) => ...
Do not use TypedResults.Ok(x) and TypedResults.NotFound() in a bare
ternary without an explicit return type annotation. Ok<T> and NotFound are
different types with no common base the compiler can infer, which causes
CS1593: Delegate 'RequestDelegate' does not take N arguments because the
compiler falls back to matching RequestDelegate(HttpContext).
Fallback — Results factory: If a handler has many conditional branches
(7+ result types), you may use the Results factory (Results.Ok(),
Results.NotFound()) which returns IResult, sacrificing compile-time OpenAPI
inference for simpler signatures.
Status codes:
| Operation | Success | Common errors |
|---|---|---|
| GET (single) | 200 OK |
404 Not Found |
| GET (list) | 200 OK |
— |
| POST (create) | 201 Created with Location header |
400 Bad Request, 409 Conflict |
| PUT (full update) | 200 OK |
400 Bad Request, 404 Not Found |
| PATCH (partial/action) | 200 OK |
400 Bad Request, 404 Not Found |
| DELETE | 204 No Content |
404 Not Found, 409 Conflict |
POST 201 responses: Always return a Location header pointing to the
newly created resource.
- Controllers: use
CreatedAtAction(nameof(GetById), new { id = ... }, response) - Minimal APIs: use
TypedResults.Created($"/api/products/{id}", response)
CancellationToken: Accept CancellationToken in every endpoint signature
and forward it through to all async calls (service methods, EF Core queries,
HttpClient calls). This allows the server to stop work when a client
disconnects.
// Controller example
[HttpGet("{id}")]
public async Task<ActionResult<ProductResponse>> GetById(
int id, CancellationToken cancellationToken)
{
var product = await _productService.GetByIdAsync(id, cancellationToken);
return product is null ? NotFound() : Ok(product);
}
// Minimal API example — TypedResults with explicit return type (recommended)
app.MapGet("/api/products/{id}", async Task<Results<Ok<ProductResponse>, NotFound>> (
int id, IProductService service, CancellationToken cancellationToken) =>
{
var product = await service.GetByIdAsync(id, cancellationToken);
return product is null ? TypedResults.NotFound() : TypedResults.Ok(product);
});
Step 4: Wire up OpenAPI
Every ASP.NET Core Web API should have OpenAPI documentation. Check whether the project already has OpenAPI configured before adding it.
For .NET 9+ projects, use the built-in ASP.NET Core OpenAPI support
(builder.Services.AddOpenApi() + app.MapOpenApi() in development).
This is all that is needed — no additional packages required.
Do NOT add any Swashbuckle.* NuGet package (Swashbuckle.AspNetCore,
Swashbuckle.AspNetCore.SwaggerUI, Swashbuckle.AspNetCore.SwaggerGen,
etc.) to .NET 9+ projects. Swashbuckle has known compatibility issues with
.NET 9+ and .NET 10 OpenAPI types. For projects targeting .NET 8 or earlier,
Swashbuckle is acceptable. If the project already has Swashbuckle installed,
keep it unless the user asks to remove it.
Reference: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/overview
OpenAPI metadata on endpoints: Add descriptive metadata so the generated documentation is useful, not just a list of routes. For minimal APIs, chain the metadata methods:
app.MapGet("/api/products/{id}", handler)
.WithName("GetProductById")
.WithSummary("Get a product by ID")
.WithDescription("Returns the full product details including category.")
.Produces<ProductResponse>(StatusCodes.Status200OK)
.Produces(StatusCodes.Status404NotFound);
Enum serialization (strings by default): Configure JSON serialization so enums appear as readable strings in both API responses and OpenAPI schemas. Always add this configuration unless the user explicitly requests integer enum serialization. Configure it for both minimal APIs and controllers, as they use different option types:
// Minimal APIs
builder.Services.ConfigureHttpJsonOptions(options =>
options.SerializerOptions.Converters.Add(new JsonStringEnumConverter()));
// Controllers / MVC
builder.Services.AddControllers()
.AddJsonOptions(options =>
{
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
});
Step 5: Set up error handling
Use a global exception handler so that individual endpoints do not need try-catch blocks. Return RFC 7807 Problem Details for all error responses.
For .NET 8+ projects, prefer the built-in exception handler middleware:
builder.Services.AddProblemDetails();
app.UseExceptionHandler();
app.UseStatusCodePages();
If the project needs custom exception-to-status-code mapping (e.g., a
NotFoundException should return 404), implement IExceptionHandler:
internal sealed class ApiExceptionHandler(ILogger<ApiExceptionHandler> logger)
: IExceptionHandler
{
public async ValueTask<bool> TryHandleAsync(
HttpContext httpContext,
Exception exception,
CancellationToken cancellationToken)
{
var (statusCode, title) = exception switch
{
KeyNotFoundException => (StatusCodes.Status404NotFound, "Not Found"),
ArgumentException => (StatusCodes.Status400BadRequest, "Bad Request"),
InvalidOperationException => (StatusCodes.Status409Conflict, "Conflict"),
_ => (0, (string?)null)
};
if (statusCode == 0)
return false; // Let the default handler deal with it
// Important: returning true below suppresses the exception diagnostics middleware
// for this exception, so ensure it is logged/telemetrized before returning.
logger.LogWarning(exception, "Handled API exception: {Title}", title);
httpContext.Response.StatusCode = statusCode;
await httpContext.Response.WriteAsJsonAsync(new ProblemDetails
{
Status = statusCode,
Title = title,
// Do not use exception.Message here — it may leak sensitive internal details.
// Use a safe, user-facing message instead.
Detail = title,
Instance = httpContext.Request.Path
}, cancellationToken);
return true;
}
}
Register it:
builder.Services.AddExceptionHandler<ApiExceptionHandler>();
builder.Services.AddProblemDetails();
app.UseExceptionHandler();
File placement: Always place exception handler classes in a Middleware/
folder to maintain consistent project organization. Do not place them at the
project root.
Step 6: Use a service layer
Do not inject data stores directly into controllers or endpoint handlers. Create a service interface and a sealed implementation class that owns the data access logic and mapping between entities and request/response types.
Always define an interface for every service — this enables unit testing with mocks and follows the Dependency Inversion Principle:
// Services/IProductService.cs
public interface IProductService
{
Task<IReadOnlyList<ProductResponse>> GetAllAsync(CancellationToken ct);
Task<ProductResponse?> GetByIdAsync(int id, CancellationToken ct);
Task<ProductResponse> CreateAsync(CreateProductRequest request, CancellationToken ct);
}
// Services/ProductService.cs
public sealed class ProductService(...) : IProductService
{
// Data access logic, entity-to-DTO mapping
}
Register with the interface, not the concrete type:
// In Program.cs
builder.Services.AddScoped<IProductService, ProductService>();
For EF Core data access patterns (migrations, Fluent API configuration,
AsNoTracking, seed data), see the optimizing-ef-core-queries skill.
Step 7: Create a .http test file
After implementing endpoints, create a .http file in the project root that
demonstrates how to call every new endpoint. This serves as living
documentation and a quick manual test harness.
@baseUrl = http://localhost:5000
### Get all products
GET {{baseUrl}}/api/products
### Get product by ID
GET {{baseUrl}}/api/products/1
### Create a product
POST {{baseUrl}}/api/products
Content-Type: application/json
{
"name": "Wireless Mouse",
"price": 29.99,
"category": "Electronics"
}
### Delete a product
DELETE {{baseUrl}}/api/products/1
Include at least one request per endpoint with realistic bodies. Show error
paths (e.g., non-existent IDs). Match the port to launchSettings.json.
Step 8: Build and verify
- Run
dotnet build— confirm zero errors and zero warnings. - Start the app and verify the OpenAPI document loads (default:
/openapi/v1.json). - Run the requests in the
.httpfile and confirm correct status codes.
Validation
- All endpoints return correct HTTP status codes per the table in Step 3
- POST endpoints return
201 Createdwith aLocationheader - DELETE endpoints return
204 No Content - Every endpoint signature includes
CancellationToken -
CancellationTokenis forwarded to all downstream async calls - OpenAPI document is generated and includes all new endpoints
- Endpoints have summary/description metadata for OpenAPI
- Enum values appear as strings in JSON responses and OpenAPI schemas (unless user explicitly requested integer serialization)
- Error responses use RFC 7807 Problem Details format
- Domain entities are not exposed directly in API request/response bodies
- All API-exposed DTOs have
<summary>XML doc comments - Date and time properties use
DateTimeOffset, notDateTime - A
.httpfile exists with a request for every new endpoint -
dotnet buildpasses with zero errors and zero warnings - All DTOs are
sealed recordtypes (not mutable classes) - Minimal API handlers use
TypedResultswith explicitResults<T1, T2>return types - Every service has a corresponding interface registered in DI
- Exception handlers are placed in the
Middleware/folder
Common Pitfalls
| Pitfall | Solution |
|---|---|
| Exposing domain entities as API responses | Create separate sealed record request/response types. Entities leak navigation properties and internal fields. |
Forgetting CancellationToken |
Add to every endpoint and forward through the entire async call chain. |
Returning 200 OK from POST create |
Return 201 Created with a Location header. |
| Missing OpenAPI metadata | Chain .WithName(), .WithSummary(), .WithDescription(), .Produces<T>() on every endpoint. |
| Injecting data stores directly into endpoints | Use a service layer with an interface for separation and testability. |
| Mixing controller and minimal API styles | Pick one per project and be consistent. |
TypedResults in ternary without explicit return type |
Ok<T> and NotFound have no common base — annotate with Task<Results<Ok<T>, NotFound>> or fall back to Results factory. |
| Using mutable classes for DTOs | Use sealed record with positional syntax (responses) or init properties (requests). |
| Registering services without interfaces | Define IService and register with AddScoped<IService, Service>(). |
Adding any Swashbuckle.* package to new .NET 9+ projects |
Use built-in AddOpenApi() + MapOpenApi(). Do not add Swashbuckle.AspNetCore, Swashbuckle.AspNetCore.SwaggerUI, or any other Swashbuckle package. |
| Missing XML doc comments on DTOs | Add <summary> XML doc comments to every request and response type. These flow into the generated OpenAPI spec automatically. |
Using DateTime for date/time properties |
Use DateTimeOffset instead — it preserves UTC offset, avoids timezone ambiguity, and serializes correctly in JSON. |
| Serializing enums as integers | Configure JsonStringEnumConverter so enums serialize as strings by default. Only use integer serialization if the user explicitly requests it. |
More Info
- ASP.NET Core Web API overview — fundamental concepts for building Web APIs
- OpenAPI in ASP.NET Core — built-in OpenAPI support in .NET 9+
- OpenAPI from XML comments — how XML doc comments flow into the OpenAPI spec
- Minimal APIs overview — routing, parameter binding, and response types
- Handle errors in ASP.NET Core APIs — Problem Details and exception handling
- DateTimeOffset — preferred type for date/time values in APIs
이 스킬의 파일
1dotnet-webapi skill 질문
Claude Code에 dotnet-webapi skill을 어떻게 설치하나요?
npx degit dotnet/skills/plugins/dotnet-aspnetcore/skills/dotnet-webapi ~/.claude/skills/dotnet-webapi를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
dotnet-webapi skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
API DTO로 클래스를 사용해야 하나요, 아니면 레코드를 사용해야 하나요?
불변성을 강제하고 간결한 코드를 제공하기 위해 모든 DTO에 sealed record를 사용하는 것이 좋습니다.
API에서 날짜 및 시간 속성을 어떻게 처리해야 하나요?
UTC 오프셋을 보존하고 적절한 ISO 8601 직렬화를 보장하기 위해 DateTime 대신 항상 DateTimeOffset을 사용하십시오.
Minimal API에서 결과를 반환하는 권장 방식은 무엇인가요?
더 나은 OpenAPI 메타데이터를 위해 응답 타입 정보를 포함하는 TypedResults를 Results 팩토리보다 우선적으로 사용하십시오.