mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-25 23:43:24 +00:00
Make suggested change for create_response
This commit is contained in:
parent
2e59cdd80f
commit
3117c60997
|
@ -23,7 +23,7 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
|
||||||
operationId: "AppController.create",
|
operationId: "AppController.create",
|
||||||
requestBody: Helpers.request_body("Parameters", create_request(), required: true),
|
requestBody: Helpers.request_body("Parameters", create_request(), required: true),
|
||||||
responses: %{
|
responses: %{
|
||||||
200 => create_response(),
|
200 => Operation.response("App", "application/json", App),
|
||||||
422 =>
|
422 =>
|
||||||
Operation.response(
|
Operation.response(
|
||||||
"Unprocessable Entity",
|
"Unprocessable Entity",
|
||||||
|
@ -120,8 +120,4 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
defp create_response do
|
|
||||||
Operation.response("App", "application/json", App)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue