Skip to content

[Feature]: Introduce a reusable public session DTO for admin APIs #16

@Bccorb

Description

@Bccorb

Problem statement

Admin session payload shaping is duplicated and explicitly marked TODO, which is a good sign the API contract wants a shared type.

See code:

  • src/controllers/admin.ts (line 261)
  • src/controllers/admin.ts (line 321)
  • src/schemas/session.responses.ts
  • src/routes/admin.routes.ts

Proposed solution

One mapper/schema for admin session responses and response-validation coverage for the admin session endpoints.

Alternatives considered

No response

Impact area

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions