1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ApiSpec.Schemas.AppCreateRequest do
6 alias OpenApiSpex.Schema
10 title: "AppCreateRequest",
11 description: "POST body for creating an app",
14 client_name: %Schema{type: :string, description: "A name for your application."},
15 redirect_uris: %Schema{
18 "Where the user should be redirected after authorization. To display the authorization code to the user instead of redirecting to a web page, use `urn:ietf:wg:oauth:2.0:oob` in this parameter."
22 description: "Space separated list of scopes. If none is provided, defaults to `read`."
24 website: %Schema{type: :string, description: "A URL to the homepage of your app"}
26 required: [:client_name, :redirect_uris],
28 "client_name" => "My App",
29 "redirect_uris" => "https://myapp.com/auth/callback",
30 "website" => "https://myapp.com/"