Start of fosscord api

This commit is contained in:
robigan
2021-07-03 12:46:53 +02:00
parent c3c8026041
commit 8990fc3548
26 changed files with 947 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
_id: req_0151c09d51324bd78a26c1236c6ce0b2
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625262677191
created: 1625262677191
url: "{{ base_url }}/channels/{{ channelId }}/messages/{{ messageId }}"
name: Returns a specific message in the channel. If operating on a guild
channel, this endpoint requires the 'READ_MESSAGE_HISTORY' permission to be
present on the current user. Returns a message object on success.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625262677191
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_144fcf66270e4e4ba3bedf967afa4747
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625237676383
created: 1625237676383
url: "{{ base_url }}/channels/{{ channelId }}"
name: Update a channel's settings. Returns a channel on success, and a 400 BAD
REQUEST on invalid parameters. All JSON parameters are optional.
description: ""
method: PATCH
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625237676383
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+34
View File
@@ -0,0 +1,34 @@
_id: req_1da02fc68c6c4865a3020cb16d129976
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c71728dd7536
modified: 1625309127857
created: 1625309127857
url: "{{ base_url }}/guilds/{{ guildId }}/audit-logs"
name: Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG'
permission.
description: ""
method: GET
body: {}
parameters:
- name: user_id
disabled: true
value: string
- name: action_type
disabled: true
value: "0"
- name: before
disabled: true
value: string
- name: limit
disabled: true
value: "0"
headers: []
authentication: {}
metaSortKey: -1625309127857
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_34e885af0db249e5bcbaf7fdb5e09fbc
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127856
created: 1625309127856
url: "{{ base_url }}/channels/{{ channelId }}"
name: Get a channel by ID. Returns a channel object. If the channel is a thread,
a thread member object is included in the returned result.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127856
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_4788630b32f7439aa7b48c466753feac
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625237584728
created: 1625237584728
url: "{{ base_url }}/channels/{{ channelId }}"
name: Update a channel's settings. Returns a channel on success, and a 400 BAD
REQUEST on invalid parameters. All JSON parameters are optional.
description: ""
method: PATCH
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625237584729
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+24
View File
@@ -0,0 +1,24 @@
_id: req_546e8de6ddef4b8aa657ecd7d954a83a
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127846
created: 1625309127846
url: "{{ base_url }}/channels/{{ channelId }}/messages/{{ messageId }}/crosspost"
name: Crosspost a message in a News Channel to following channels. This endpoint
requires the 'SEND_MESSAGES' permission, if the current user sent the message,
or additionally the 'MANAGE_MESSAGES' permission, for all other messages, to
be present for the current user.
description: ""
method: POST
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127846
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+26
View File
@@ -0,0 +1,26 @@
_id: req_653975ede5714e61a426c223cf0e2d44
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127852
created: 1625309127852
url: "{{ base_url }}/channels/{{ channelId }}"
name: Delete a channel, or close a private message. Requires the MANAGE_CHANNELS
permission for the guild, or MANAGE_THREADS if the channel is a thread.
Deleting a category does not delete its child channels; they will have their
parent_id removed and a Channel Update Gateway event will fire for each of
them. Returns a channel object on success. Fires a Channel Delete Gateway
event (or Thread Delete if the channel was a thread).
description: ""
method: DELETE
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127852
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_67b2d27b24cb47afa38c5adb1785a324
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625262677198
created: 1625262677198
url: "{{ base_url }}/channels/{{ channelId }}"
name: Get a channel by ID. Returns a channel object. If the channel is a thread,
a thread member object is included in the returned result.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625262677198
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+34
View File
@@ -0,0 +1,34 @@
_id: req_6d5bbc2f6ff5490f858428b6b5500417
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c71728dd7536
modified: 1625237676386
created: 1625237676386
url: "{{ base_url }}/guilds/{{ guildId }}/audit-logs"
name: Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG'
permission.
description: ""
method: GET
body: {}
parameters:
- name: user_id
disabled: true
value: string
- name: action_type
disabled: true
value: "0"
- name: before
disabled: true
value: string
- name: limit
disabled: true
value: "0"
headers: []
authentication: {}
metaSortKey: -1625237676386
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_705afa0e6efa454896d733795927c5e8
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625262677196
created: 1625262677196
url: "{{ base_url }}/channels/{{ channelId }}"
name: Update a channel's settings. Returns a channel on success, and a 400 BAD
REQUEST on invalid parameters. All JSON parameters are optional.
description: ""
method: PATCH
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625262677196
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_7208c49ac0fa49ed9c095aa675d6c40d
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625237584731
created: 1625237584731
url: "{{ base_url }}/channels/{{ channelId }}"
name: Get a channel by ID. Returns a channel object. If the channel is a thread,
a thread member object is included in the returned result.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625237584731
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+34
View File
@@ -0,0 +1,34 @@
_id: req_8ceaa170807a439db5dffc52c79d096e
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c71728dd7536
modified: 1625237584732
created: 1625237584732
url: "{{ base_url }}/guilds/{{ guildId }}/audit-logs"
name: Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG'
permission.
description: ""
method: GET
body: {}
parameters:
- name: user_id
disabled: true
value: string
- name: action_type
disabled: true
value: "0"
- name: before
disabled: true
value: string
- name: limit
disabled: true
value: "0"
headers: []
authentication: {}
metaSortKey: -1625237584732
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+37
View File
@@ -0,0 +1,37 @@
_id: req_91103ee98a984241b9daad53f7464754
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625262677193
created: 1625262677193
url: "{{ base_url }}/channels/{{ channelId }}/messages"
name: Returns the messages for a channel. If operating on a guild channel, this
endpoint requires the VIEW_CHANNEL permission to be present on the current
user. If the current user is missing the 'READ_MESSAGE_HISTORY' permission in
the channel then this will return no messages (since they cannot read the
message history). Returns an array of message objects on success.
description: ""
method: GET
body: {}
parameters:
- name: around
disabled: true
value: string
- name: before
disabled: true
value: string
- name: after
disabled: true
value: string
- name: limit
disabled: true
value: "50"
headers: []
authentication: {}
metaSortKey: -1625262677194
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_a9eee023ff07463793300cbab288d9f0
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625237676384
created: 1625237676384
url: "{{ base_url }}/channels/{{ channelId }}"
name: Get a channel by ID. Returns a channel object. If the channel is a thread,
a thread member object is included in the returned result.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625237676384
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+37
View File
@@ -0,0 +1,37 @@
_id: req_b8904b13a5e243acbab850cdf42e910c
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127851
created: 1625309127851
url: "{{ base_url }}/channels/{{ channelId }}/messages"
name: Returns the messages for a channel. If operating on a guild channel, this
endpoint requires the VIEW_CHANNEL permission to be present on the current
user. If the current user is missing the 'READ_MESSAGE_HISTORY' permission in
the channel then this will return no messages (since they cannot read the
message history). Returns an array of message objects on success.
description: ""
method: GET
body: {}
parameters:
- name: around
disabled: true
value: string
- name: before
disabled: true
value: string
- name: after
disabled: true
value: string
- name: limit
disabled: true
value: "50"
headers: []
authentication: {}
metaSortKey: -1625309127851
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+23
View File
@@ -0,0 +1,23 @@
_id: req_c66b4b765fdc4e9a9db8c4c0c11d5663
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127849
created: 1625309127849
url: "{{ base_url }}/channels/{{ channelId }}/messages/{{ messageId }}"
name: Returns a specific message in the channel. If operating on a guild
channel, this endpoint requires the 'READ_MESSAGE_HISTORY' permission to be
present on the current user. Returns a message object on success.
description: ""
method: GET
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127849
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+23
View File
@@ -0,0 +1,23 @@
_id: req_cece238b361045edae5b0be24cdde2ac
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127848
created: 1625309127848
url: "{{ base_url }}/channels/{{ channelId }}/messages/{{ messageId }}"
name: Post a message to a guild text or DM channel. Returns a message object.
Fires a Message Create Gateway event. See message formatting for more
information on how to properly format messages.
description: ""
method: POST
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127848
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+26
View File
@@ -0,0 +1,26 @@
_id: req_eb3db1caf4dd4dd6b0c9f840b891d4e9
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625262677195
created: 1625262677195
url: "{{ base_url }}/channels/{{ channelId }}"
name: Delete a channel, or close a private message. Requires the MANAGE_CHANNELS
permission for the guild, or MANAGE_THREADS if the channel is a thread.
Deleting a category does not delete its child channels; they will have their
parent_id removed and a Channel Update Gateway event will fire for each of
them. Returns a channel object on success. Fires a Channel Delete Gateway
event (or Thread Delete if the channel was a thread).
description: ""
method: DELETE
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625262677195
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+22
View File
@@ -0,0 +1,22 @@
_id: req_f0bc1302a3cf4897a89c6d7743d6d421
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c717879f0b1b
modified: 1625309127854
created: 1625309127854
url: "{{ base_url }}/channels/{{ channelId }}"
name: Update a channel's settings. Returns a channel on success, and a 400 BAD
REQUEST on invalid parameters. All JSON parameters are optional.
description: ""
method: PATCH
body: {}
parameters: []
headers: []
authentication: {}
metaSortKey: -1625309127854
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global
+34
View File
@@ -0,0 +1,34 @@
_id: req_fc26963ee41647f99f464b90e393a9e2
type: Request
parentId: fld_wrk_84bc4b982502477baa52fb4972f3c71728dd7536
modified: 1625262677200
created: 1625262677200
url: "{{ base_url }}/guilds/{{ guildId }}/audit-logs"
name: Returns an audit log object for the guild. Requires the 'VIEW_AUDIT_LOG'
permission.
description: ""
method: GET
body: {}
parameters:
- name: user_id
disabled: true
value: string
- name: action_type
disabled: true
value: "0"
- name: before
disabled: true
value: string
- name: limit
disabled: true
value: "0"
headers: []
authentication: {}
metaSortKey: -1625262677200
isPrivate: false
settingStoreCookies: true
settingSendCookies: true
settingDisableRenderRequestBody: false
settingEncodeUrl: true
settingRebuildPath: true
settingFollowRedirects: global