add bubble timeline (#100)
[akkoma] / lib / pleroma / web / api_spec / operations / timeline_operation.ex
index d375c76b8a1fa953d633d25c387b2a402f6c54e1..3eb6f700b7f959986d9f58c5a6a93b502d4cfd62 100644 (file)
@@ -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"],