summaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations/admin
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-01-25 20:15:33 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-02-17 18:46:53 +0100
commitff72ce31cabad55e1be3ea376873b7d98701a3d9 (patch)
tree14d39fec0f74d341b9d9f6315707ad43587c620c /lib/pleroma/web/api_spec/operations/admin
parent046bcf1bf66b9ece6017b7e06f650371d0ceb860 (diff)
downloadpleroma-ff72ce31cabad55e1be3ea376873b7d98701a3d9.tar.gz
pleroma-ff72ce31cabad55e1be3ea376873b7d98701a3d9.zip
Enhance reports in Pleroma API: index, show
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/admin')
-rw-r--r--lib/pleroma/web/api_spec/operations/admin/report_operation.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/admin/report_operation.ex b/lib/pleroma/web/api_spec/operations/admin/report_operation.ex
index cfa892d29..30e56366e 100644
--- a/lib/pleroma/web/api_spec/operations/admin/report_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/admin/report_operation.ex
@@ -136,11 +136,11 @@ defmodule Pleroma.Web.ApiSpec.Admin.ReportOperation do
}
end
- defp report_state do
+ def report_state do
%Schema{type: :string, enum: ["open", "closed", "resolved"]}
end
- defp id_param do
+ def id_param do
Operation.parameter(:id, :path, FlakeID, "Report ID",
example: "9umDrYheeY451cQnEe",
required: true