logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

app.ex (1063B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ApiSpec.Schemas.App do
  5. alias OpenApiSpex.Schema
  6. require OpenApiSpex
  7. OpenApiSpex.schema(%{
  8. title: "App",
  9. description: "Response schema for an app",
  10. type: :object,
  11. properties: %{
  12. id: %Schema{type: :string},
  13. name: %Schema{type: :string},
  14. client_id: %Schema{type: :string},
  15. client_secret: %Schema{type: :string},
  16. redirect_uri: %Schema{type: :string},
  17. vapid_key: %Schema{type: :string},
  18. website: %Schema{type: :string, nullable: true}
  19. },
  20. example: %{
  21. "id" => "123",
  22. "name" => "My App",
  23. "client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
  24. "client_secret" => "ZEaFUFmF0umgBX1qKJDjaU99Q31lDkOU8NutzTOoliw",
  25. "vapid_key" =>
  26. "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
  27. "website" => "https://myapp.com/"
  28. }
  29. })
  30. end