Add OpenAPI spec for NotificationController
This commit is contained in:
parent
12bb7fc0dc
commit
5238ae3dd3
7 changed files with 325 additions and 104 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue