Merge branch 'develop' into openapi/account
[akkoma] / lib / pleroma / web / api_spec / schemas / account_relationships_response.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.ApiSpec.Schemas.AccountRelationshipsResponse do
6 require OpenApiSpex
7
8 OpenApiSpex.schema(%{
9 title: "AccountRelationshipsResponse",
10 description: "Response schema for account relationships",
11 type: :array,
12 items: Pleroma.Web.ApiSpec.Schemas.AccountRelationship,
13 example: [
14 %{
15 "id" => "1",
16 "following" => true,
17 "showing_reblogs" => true,
18 "followed_by" => true,
19 "blocking" => false,
20 "blocked_by" => true,
21 "muting" => false,
22 "muting_notifications" => false,
23 "requested" => false,
24 "domain_blocking" => false,
25 "subscribing" => false,
26 "endorsed" => true
27 },
28 %{
29 "id" => "2",
30 "following" => true,
31 "showing_reblogs" => true,
32 "followed_by" => true,
33 "blocking" => false,
34 "blocked_by" => true,
35 "muting" => true,
36 "muting_notifications" => false,
37 "requested" => true,
38 "domain_blocking" => false,
39 "subscribing" => false,
40 "endorsed" => false
41 },
42 %{
43 "id" => "3",
44 "following" => true,
45 "showing_reblogs" => true,
46 "followed_by" => true,
47 "blocking" => true,
48 "blocked_by" => false,
49 "muting" => true,
50 "muting_notifications" => false,
51 "requested" => false,
52 "domain_blocking" => true,
53 "subscribing" => true,
54 "endorsed" => false
55 }
56 ]
57 })
58 end