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.AccountCreateResponse do
6 alias OpenApiSpex.Schema
11 title: "AccountCreateResponse",
12 description: "Response schema for an account",
15 token_type: %Schema{type: :string},
16 access_token: %Schema{type: :string},
17 scope: %Schema{type: :array, items: %Schema{type: :string}},
18 created_at: %Schema{type: :integer}
22 "access_token" => "i9hAVVzGld86Pl5JtLtizKoXVvtTlSCJvwaugCxvZzk",
23 "created_at" => 1_585_918_714,
24 "scope" => ["read", "write", "follow", "push"],
25 "token_type" => "Bearer"