Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33102750
pleroma_follow_request_operation.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
970 B
Referenced Files
None
Subscribers
None
pleroma_follow_request_operation.ex
View Options
# 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
Details
Attached
Mime Type
text/x-ruby
Expires
Tue, Jan 20, 1:11 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973681
Default Alt Text
pleroma_follow_request_operation.ex (970 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment