diff options
author | lain <lain@soykaf.club> | 2020-05-06 08:43:21 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-06 08:43:21 +0000 |
commit | 7fdc7078ae5c1cc3810e98cb1eac4ea90a977c73 (patch) | |
tree | 70123b185c3f0ad20fe1668150ecc322c43902e6 /lib/pleroma/web/api_spec/schemas | |
parent | 76c1a7a34be73731158f9347f5a7df60d267d6e3 (diff) | |
parent | f2bf4390f4231d25486b803d426199975996f175 (diff) | |
download | pleroma-7fdc7078ae5c1cc3810e98cb1eac4ea90a977c73.tar.gz |
Merge branch 'openapi/lists' into 'develop'
Add OpenAPI spec for ListController
See merge request pleroma/pleroma!2453
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/list.ex | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/list.ex b/lib/pleroma/web/api_spec/schemas/list.ex new file mode 100644 index 000000000..b7d1685c9 --- /dev/null +++ b/lib/pleroma/web/api_spec/schemas/list.ex @@ -0,0 +1,23 @@ +# Pleroma: A lightweight social networking server +# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only + +defmodule Pleroma.Web.ApiSpec.Schemas.List do + alias OpenApiSpex.Schema + + require OpenApiSpex + + OpenApiSpex.schema(%{ + title: "List", + description: "Represents a list of users", + type: :object, + properties: %{ + id: %Schema{type: :string, description: "The internal database ID of the list"}, + title: %Schema{type: :string, description: "The user-defined title of the list"} + }, + example: %{ + "id" => "12249", + "title" => "Friends" + } + }) +end |