diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-12 20:55:01 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-12 20:55:01 +0300 |
commit | bfb48e3db6009c31e52cfe5ac4828a6143d7e549 (patch) | |
tree | 7c7e3a574b6985fbc6036e54baf455b22982395c /lib/pleroma/web/api_spec/helpers.ex | |
parent | 63a1a82f38d3d8a63dd7d52e1412446274c94722 (diff) | |
download | pleroma-bfb48e3db6009c31e52cfe5ac4828a6143d7e549.tar.gz |
[#2456] OpenAPI: added `embed_relationships` param definition.
Diffstat (limited to 'lib/pleroma/web/api_spec/helpers.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/helpers.ex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/helpers.ex b/lib/pleroma/web/api_spec/helpers.ex index 183df43ee..ee077a3f9 100644 --- a/lib/pleroma/web/api_spec/helpers.ex +++ b/lib/pleroma/web/api_spec/helpers.ex @@ -47,6 +47,15 @@ defmodule Pleroma.Web.ApiSpec.Helpers do ] end + def embed_relationships_param do + Operation.parameter( + :embed_relationships, + :query, + :boolean, + "Embed relationships into accounts (Pleroma extension)" + ) + end + def empty_object_response do Operation.response("Empty object", "application/json", %Schema{type: :object, example: %{}}) end |