Description
Implement the API-layer methods for records endpoints.
Requirements
- FR-2.1:
GET /api/user/records — list user's records and drafts
- FR-2.2:
GET /records/ — search published records with Elasticsearch query
- FR-2.3:
GET /records/:id — get full record details
- FR-2.4:
GET /api/records/:id/versions — list all versions
Acceptance Criteria
Dependencies
Description
Implement the API-layer methods for records endpoints.
Requirements
GET /api/user/records— list user's records and draftsGET /records/— search published records with Elasticsearch queryGET /records/:id— get full record detailsGET /api/records/:id/versions— list all versionsAcceptance Criteria
internal/api/records.gowith methods:ListUserRecords(params)— paginated, supports--statusand--communityfiltersSearchRecords(query, params)— paginated, supports--communityfilterGetRecord(id)— single record fetchListVersions(id)— paginated version listhttptestmock serverDependencies