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

@ -46,4 +46,12 @@ defmodule Pleroma.Web.ApiSpec.Helpers do
)
]
end
def empty_object_response do
Operation.response("Empty object", "application/json", %Schema{type: :object, example: %{}})
end
def empty_array_response do
Operation.response("Empty array", "application/json", %Schema{type: :array, example: []})
end
end