Page MenuHomePhorge

pleroma_follow_request_operation.ex
No OneTemporary

Size
970 B
Referenced Files
None
Subscribers
None

pleroma_follow_request_operation.ex

# Pleroma: A lightweight social networking server
# Copyright © 2017-2024 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.PleromaFollowRequestOperation do
alias OpenApiSpex.Operation
alias OpenApiSpex.Schema
alias Pleroma.Web.ApiSpec.Schemas.Account
def open_api_operation(action) do
operation = String.to_existing_atom("#{action}_operation")
apply(__MODULE__, operation, [])
end
def outgoing_operation do
%Operation{
tags: ["Follow requests"],
summary: "Retrieve outgoing follow requests",
security: [%{"oAuth" => ["read:follows", "follow"]}],
operationId: "PleromaFollowRequestController.outgoing",
responses: %{
200 =>
Operation.response("Array of Account", "application/json", %Schema{
type: :array,
items: Account,
example: [Account.schema().example]
})
}
}
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:11 PM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973681
Default Alt Text
pleroma_follow_request_operation.ex (970 B)

Event Timeline