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_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/typeutils/converter_test.go') diff --git a/internal/typeutils/converter_test.go b/internal/typeutils/converter_test.go index 8030a1d20..c6f3c2579 100644 --- a/internal/typeutils/converter_test.go +++ b/internal/typeutils/converter_test.go @@ -475,6 +475,7 @@ type TypeUtilsTestSuite struct { testAttachments map[string]*gtsmodel.MediaAttachment testPeople map[string]vocab.ActivityStreamsPerson testEmojis map[string]*gtsmodel.Emoji + testReports map[string]*gtsmodel.Report typeconverter typeutils.TypeConverter } @@ -489,6 +490,7 @@ func (suite *TypeUtilsTestSuite) SetupSuite() { suite.testAttachments = testrig.NewTestAttachments() suite.testPeople = testrig.NewTestFediPeople() suite.testEmojis = testrig.NewTestEmojis() + suite.testReports = testrig.NewTestReports() suite.typeconverter = typeutils.NewConverter(suite.db) } -- cgit v1.2.3