You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
5 years ago
|
# Pleroma: A lightweight social networking server
|
||
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
||
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
5 years ago
|
defmodule Pleroma.Web.ApiSpec.Schemas.AccountRelationship do
|
||
5 years ago
|
alias OpenApiSpex.Schema
|
||
|
|
||
|
require OpenApiSpex
|
||
|
|
||
|
OpenApiSpex.schema(%{
|
||
5 years ago
|
title: "AccountRelationship",
|
||
|
description: "Response schema for relationship",
|
||
5 years ago
|
type: :object,
|
||
|
properties: %{
|
||
|
blocked_by: %Schema{type: :boolean},
|
||
5 years ago
|
blocking: %Schema{type: :boolean},
|
||
|
domain_blocking: %Schema{type: :boolean},
|
||
|
endorsed: %Schema{type: :boolean},
|
||
|
followed_by: %Schema{type: :boolean},
|
||
|
following: %Schema{type: :boolean},
|
||
|
id: %Schema{type: :string},
|
||
5 years ago
|
muting: %Schema{type: :boolean},
|
||
|
muting_notifications: %Schema{type: :boolean},
|
||
|
requested: %Schema{type: :boolean},
|
||
5 years ago
|
showing_reblogs: %Schema{type: :boolean},
|
||
|
subscribing: %Schema{type: :boolean}
|
||
5 years ago
|
},
|
||
|
example: %{
|
||
|
"JSON" => %{
|
||
|
"blocked_by" => false,
|
||
5 years ago
|
"blocking" => false,
|
||
|
"domain_blocking" => false,
|
||
|
"endorsed" => false,
|
||
|
"followed_by" => false,
|
||
|
"following" => false,
|
||
|
"id" => "9tKi3esbG7OQgZ2920",
|
||
5 years ago
|
"muting" => false,
|
||
|
"muting_notifications" => false,
|
||
|
"requested" => false,
|
||
5 years ago
|
"showing_reblogs" => true,
|
||
|
"subscribing" => false
|
||
5 years ago
|
}
|
||
|
}
|
||
|
})
|
||
|
end
|