Infrastructure low complexity backendmobile
1
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

REST API endpoint contract definitions for activity operations, consumed by Activity Service via the shared API HTTP Client. Specifies the interface between the Flutter mobile app and the Next.js backend for activity creation, retrieval, deletion, and activity type catalogue synchronisation.

Feature: Simple Activity Logging

activity-api-endpoints

Responsibilities

  • Define the REST contract for POST /api/v1/activities (create a new activity record)
  • Define the REST contract for GET /api/v1/activities (list activities filtered by user)
  • Define the REST contract for GET /api/v1/activity-types (fetch the fixed type catalogue)
  • Specify request/response DTOs and error codes for all activity operations

Interfaces

POST /api/v1/activities → ActivityResponse
GET /api/v1/activities?userId={id}&page={n} → PaginatedActivityResponse
GET /api/v1/activity-types → List<ActivityTypeResponse>
DELETE /api/v1/activities/{id} → 204 No Content

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component