Fix formatting in app_operation.ex
This commit is contained in:
parent
6519732045
commit
ba6914f90a
|
@ -21,7 +21,7 @@ def index_operation 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,7 +164,8 @@ defp index_response 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},
|
id: %Schema{type: :string},
|
||||||
name: %Schema{type: :string},
|
name: %Schema{type: :string},
|
||||||
client_id: %Schema{type: :string},
|
client_id: %Schema{type: :string},
|
||||||
|
@ -172,8 +173,10 @@ defp index_response do
|
||||||
redirect_uri: %Schema{type: :string},
|
redirect_uri: %Schema{type: :string},
|
||||||
vapid_key: %Schema{type: :string},
|
vapid_key: %Schema{type: :string},
|
||||||
website: %Schema{type: :string, nullable: true}
|
website: %Schema{type: :string, nullable: true}
|
||||||
}],
|
}
|
||||||
example: [%{
|
],
|
||||||
|
example: [
|
||||||
|
%{
|
||||||
"id" => "123",
|
"id" => "123",
|
||||||
"name" => "My App",
|
"name" => "My App",
|
||||||
"client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
|
"client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
|
||||||
|
@ -181,7 +184,8 @@ defp index_response do
|
||||||
"vapid_key" =>
|
"vapid_key" =>
|
||||||
"BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
|
"BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
|
||||||
"website" => "https://myapp.com/"
|
"website" => "https://myapp.com/"
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue