Skip to content

MyApp.Api — filtered API export

Public API surface rendered deterministically from build-time XML doc comments (ADR-0022). Test projects and infrastructure namespaces are excluded; <spec> tags trace members to requirements and are verified against the traceability metadata contract (ADR-0019). Regenerate with scripts/generate-dotnet-doc-export.py — do not edit.

TodosController

MyApp.Api.Controllers.TodosController

CRUD endpoints for todo items.

Traces to: moscow:M-002

constructor(TodoService)

M:MyApp.Api.Controllers.TodosController.#ctor(MyApp.Application.TodoService)

Initializes a new instance of the TodosController class.

  • service — The application-layer todo service.

Create(CreateTodoRequest)

M:MyApp.Api.Controllers.TodosController.Create(MyApp.Application.CreateTodoRequest)

Creates a new todo item.

  • request — The creation request body.
  • Returns — The created item.
  • 400 — The request body is missing or has an empty title.

Delete(Guid)

M:MyApp.Api.Controllers.TodosController.Delete(System.Guid)

Deletes a todo item.

  • id — The identifier of the item.
  • Returns — No content on success.
  • 404 — No item with the given identifier exists.

Get(Guid)

M:MyApp.Api.Controllers.TodosController.Get(System.Guid)

Returns a single todo item by identifier.

  • id — The identifier of the item.
  • Returns — The requested item.
  • 404 — No item with the given identifier exists.

GetAll

M:MyApp.Api.Controllers.TodosController.GetAll

Lists all todo items.

  • Returns — Every todo item currently stored.

SetCompletion(Guid, bool)

M:MyApp.Api.Controllers.TodosController.SetCompletion(System.Guid,System.Boolean)

Sets the completion state of a todo item.

  • id — The identifier of the item.
  • isCompleted — The new completion state.
  • Returns — The updated item.
  • 404 — No item with the given identifier exists.

Program

Program

Auto-generated public partial Program class for top-level statement apps.