From e9747247d58a0423d5e40fda5c5b37b4b4526495 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:14:21 +0100 Subject: [feature] Implement `/api/v1/reports` endpoints on client API (#1330) * start adding report client api * route + test reports get * start report create endpoint * you can create reports now babyy * stub account report processor * add single reportGet endpoint * fix test * add more filtering params to /api/v1/reports GET * update swagger * use marshalIndent in tests * add + test missing Link info --- internal/typeutils/converter.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/typeutils/converter.go') diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go index 2eab1761a..be05a8a48 100644 --- a/internal/typeutils/converter.go +++ b/internal/typeutils/converter.go @@ -87,6 +87,8 @@ type TypeConverter interface { NotificationToAPINotification(ctx context.Context, n *gtsmodel.Notification) (*apimodel.Notification, error) // DomainBlockToAPIDomainBlock converts a gts model domin block into a api domain block, for serving at /api/v1/admin/domain_blocks DomainBlockToAPIDomainBlock(ctx context.Context, b *gtsmodel.DomainBlock, export bool) (*apimodel.DomainBlock, error) + // ReportToAPIReport converts a gts model report into an api model report, for serving at /api/v1/reports + ReportToAPIReport(ctx context.Context, r *gtsmodel.Report) (*apimodel.Report, error) /* INTERNAL (gts) MODEL TO FRONTEND (rss) MODEL -- cgit v1.2.3