إنتقل إلى المحتوى الرئيسي

WP-15 API spec

WP-15 is a Flutter-only package. It adds no API code. Decision: ADR 0012. Wire: exchange/admin-screens.md.

Usage​

The admin screens read the endpoints below. WP-12 adds every missing field. See api-enrichment.md.

  • GET /api/v1/afia/admin/dashboard for dashboard.
  • /api/v1/afia/admin/users for users.
  • PATCH /api/v1/afia/admin/users/{id}/status for activate and suspend.
  • /api/v1/afia/admin/structures, /admin/specialties, and /admin/tariffs for structures, specialties, slots, and tariffs.
  • /api/v1/afia/admin/agreements for agreements and transactions.

Domain​

None. Types stay in their owner packages.

Persistence​

None.

HTTP DTOs​

None. The screens read the DTOs in api-enrichment.md and the owner specs.

Mappers​

None.

Services​

None.

Controllers​

No new controller. WP-12 owns the new endpoints. The owner packages keep their controllers.

Does not do​

Java types. Liquibase changesets. Fields that no in-scope Stitch screen shows.