Fix formatting in app_operation.ex

This commit is contained in:
Sean King 2021-08-26 11:11:37 -06:00
parent 6519732045
commit ba6914f90a
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257

View file

@ -21,7 +21,7 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
description: "List the OAuth applications for the current user", description: "List the OAuth applications for the current user",
operationId: "AppController.index", operationId: "AppController.index",
responses: %{ responses: %{
200 => Operation.response("App", "application/json", index_response()), 200 => Operation.response("App", "application/json", index_response())
} }
} }
end end
@ -164,24 +164,28 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
title: "AppIndexResponse", title: "AppIndexResponse",
description: "Response schema for GET /api/v1/apps", description: "Response schema for GET /api/v1/apps",
type: :object, type: :object,
properties: [%{ properties: [
id: %Schema{type: :string}, %{
name: %Schema{type: :string}, id: %Schema{type: :string},
client_id: %Schema{type: :string}, name: %Schema{type: :string},
client_secret: %Schema{type: :string}, client_id: %Schema{type: :string},
redirect_uri: %Schema{type: :string}, client_secret: %Schema{type: :string},
vapid_key: %Schema{type: :string}, redirect_uri: %Schema{type: :string},
website: %Schema{type: :string, nullable: true} vapid_key: %Schema{type: :string},
}], website: %Schema{type: :string, nullable: true}
example: [%{ }
"id" => "123", ],
"name" => "My App", example: [
"client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM", %{
"client_secret" => "ZEaFUFmF0umgBX1qKJDjaU99Q31lDkOU8NutzTOoliw", "id" => "123",
"vapid_key" => "name" => "My App",
"BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=", "client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
"website" => "https://myapp.com/" "client_secret" => "ZEaFUFmF0umgBX1qKJDjaU99Q31lDkOU8NutzTOoliw",
}] "vapid_key" =>
"BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
"website" => "https://myapp.com/"
}
]
} }
end end
end end