X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fapi_spec%2Foperations%2Ftimeline_operation.ex;h=3eb6f700b7f959986d9f58c5a6a93b502d4cfd62;hb=cb6e7359af353bb19262ac94b92b41a62819523e;hp=24d7929166f2ad2ef6993b7f7cb54aad9d0f8ad4;hpb=3674179b26b3351e34f527b7e267a5ff0f551c2e;p=akkoma diff --git a/lib/pleroma/web/api_spec/operations/timeline_operation.ex b/lib/pleroma/web/api_spec/operations/timeline_operation.ex index 24d792916..3eb6f700b 100644 --- a/lib/pleroma/web/api_spec/operations/timeline_operation.ex +++ b/lib/pleroma/web/api_spec/operations/timeline_operation.ex @@ -43,7 +43,7 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do tags: ["Timelines"], summary: "Direct timeline", description: - "View statuses with a “direct” scope addressed to the account. Using this endpoint is discouraged, please use [conversations](#tag/Conversations) or [chats](#tag/Chats).", + "View statuses with a “direct” scope addressed to the account. Using this endpoint is discouraged, please use [conversations](#tag/Conversations).", parameters: [with_muted_param() | pagination_params()], security: [%{"oAuth" => ["read:statuses"]}], operationId: "TimelineController.direct", @@ -75,6 +75,26 @@ defmodule Pleroma.Web.ApiSpec.TimelineOperation do } end + def bubble_operation do + %Operation{ + tags: ["Timelines"], + summary: "Bubble timeline", + security: [%{"oAuth" => ["read:statuses"]}], + parameters: [ + only_media_param(), + remote_param(), + with_muted_param(), + exclude_visibilities_param(), + reply_visibility_param() | pagination_params() + ], + operationId: "TimelineController.bubble", + responses: %{ + 200 => Operation.response("Array of Status", "application/json", array_of_statuses()), + 401 => Operation.response("Error", "application/json", ApiError) + } + } + end + def hashtag_operation do %Operation{ tags: ["Timelines"],