Skip to content

Commit 4852be5

Browse files
authored
Merge pull request #285 from KC-2001MS/fix/procedure-method-get-to-post
Fix 13 procedure wrappers using GET instead of POST
2 parents 9e3f93f + 823d0f4 commit 4852be5

13 files changed

Lines changed: 13 additions & 13 deletions

Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteSetAsAdmin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension ATProtoAdmin {
4747
do {
4848
let request = apiClientService.createRequest(
4949
forRequest: requestURL,
50-
andMethod: .get,
50+
andMethod: .post,
5151
acceptValue: "application/json",
5252
contentTypeValue: nil,
5353
authorizationValue: "Bearer \(accessToken)"

Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/DeleteValuesAsAdmin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension ATProtoAdmin {
5252
do {
5353
let request = apiClientService.createRequest(
5454
forRequest: requestURL,
55-
andMethod: .get,
55+
andMethod: .post,
5656
acceptValue: "application/json",
5757
contentTypeValue: nil,
5858
authorizationValue: "Bearer \(accessToken)"

Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/RemoveOptionsAsAdmin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension ATProtoAdmin {
4545
do {
4646
let request = apiClientService.createRequest(
4747
forRequest: requestURL,
48-
andMethod: .get,
48+
andMethod: .post,
4949
acceptValue: "application/json",
5050
contentTypeValue: nil,
5151
authorizationValue: "Bearer \(accessToken)"

Sources/ATProtoKit/APIReference/AdminAndModeratorAPI/UpsertSetAsAdmin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extension ATProtoAdmin {
5252
do {
5353
let request = apiClientService.createRequest(
5454
forRequest: requestURL,
55-
andMethod: .get,
55+
andMethod: .post,
5656
acceptValue: "application/json",
5757
contentTypeValue: nil,
5858
authorizationValue: "Bearer \(accessToken)"

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyActorDeleteAccountMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extension ATProtoBlueskyChat {
4040
do {
4141
let request = apiClientService.createRequest(
4242
forRequest: requestURL,
43-
andMethod: .get,
43+
andMethod: .post,
4444
acceptValue: "application/json",
4545
contentTypeValue: nil,
4646
authorizationValue: "Bearer \(accessToken)",

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAcceptConvoMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extension ATProtoBlueskyChat {
4343
do {
4444
let request = apiClientService.createRequest(
4545
forRequest: requestURL,
46-
andMethod: .get,
46+
andMethod: .post,
4747
acceptValue: "application/json",
4848
contentTypeValue: "application/json",
4949
authorizationValue: "Bearer \(accessToken)",

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoAddReactionMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension ATProtoBlueskyChat {
5656
do {
5757
let request = apiClientService.createRequest(
5858
forRequest: requestURL,
59-
andMethod: .get,
59+
andMethod: .post,
6060
acceptValue: "application/json",
6161
contentTypeValue: "application/json",
6262
authorizationValue: "Bearer \(accessToken)",

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoDeleteMessageForSelfMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extension ATProtoBlueskyChat {
4949
do {
5050
let request = apiClientService.createRequest(
5151
forRequest: requestURL,
52-
andMethod: .get,
52+
andMethod: .post,
5353
acceptValue: "application/json",
5454
contentTypeValue: "application/json",
5555
authorizationValue: "Bearer \(accessToken)",

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoRemoveReactionMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension ATProtoBlueskyChat {
5656
do {
5757
let request = apiClientService.createRequest(
5858
forRequest: requestURL,
59-
andMethod: .get,
59+
andMethod: .post,
6060
acceptValue: "application/json",
6161
contentTypeValue: "application/json",
6262
authorizationValue: "Bearer \(accessToken)",

Sources/ATProtoKit/APIReference/ChatBskyAPI/ChatBskyConvoSendMessageBatchMethod.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension ATProtoBlueskyChat {
4747
do {
4848
let request = apiClientService.createRequest(
4949
forRequest: requestURL,
50-
andMethod: .get,
50+
andMethod: .post,
5151
acceptValue: "application/json",
5252
contentTypeValue: "application/json",
5353
authorizationValue: "Bearer \(accessToken)",

0 commit comments

Comments
 (0)