Add OpenAPI spec for NotificationController

This commit is contained in:
Egor Kislitsyn 2020-04-28 21:27:54 +04:00
commit 5238ae3dd3
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
7 changed files with 325 additions and 104 deletions

View file

@ -344,7 +344,7 @@ defmodule Pleroma.Web.Router do
post("/notifications/clear", NotificationController, :clear)
delete("/notifications/destroy_multiple", NotificationController, :destroy_multiple)
# Deprecated: was removed in Mastodon v3, use `/notifications/:id/dismiss` instead
post("/notifications/dismiss", NotificationController, :dismiss)
post("/notifications/dismiss", NotificationController, :dismiss_via_body)
get("/scheduled_statuses", ScheduledActivityController, :index)
get("/scheduled_statuses/:id", ScheduledActivityController, :show)