Skip to content

Commit

Permalink
Remove deleted player moderation endpoints (#397)
Browse files Browse the repository at this point in the history
* Remove deleted player moderation endpoints

* Remove path (I am blind)
  • Loading branch information
jellejurre authored Oct 7, 2024
1 parent 9f577d7 commit 573deca
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 88 deletions.
11 changes: 0 additions & 11 deletions openapi/components/codeSamples/playermoderation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@
source: >-
curl -X DELETE "https://vrchat.com/api/1/auth/user/playermoderations" \
-b "auth={authCookie}"
'/auth/user/playermoderations/{playerModerationId}':
get:
- lang: cURL
source: >-
curl -X GET "https://vrchat.com/api/1/auth/user/playermoderations/{playerModerationId}" \
-b "auth={authCookie}"
delete:
- lang: cURL
source: >-
curl -X DELETE "https://vrchat.com/api/1/auth/user/playermoderations/{playerModerationId}" \
-b "auth={authCookie}"
/auth/user/unplayermoderate:
put:
- lang: cURL
Expand Down
2 changes: 0 additions & 2 deletions openapi/components/paths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@

"/auth/user/playermoderations":
$ref: "./paths/playermoderation.yaml#/paths/~1auth~1user~1playermoderations"
"/auth/user/playermoderations/{playerModerationId}":
$ref: "./paths/playermoderation.yaml#/paths/~1auth~1user~1playermoderations~1{playerModerationId}"
"/auth/user/unplayermoderate":
$ref: "./paths/playermoderation.yaml#/paths/~1auth~1user~1unplayermoderate"

Expand Down
42 changes: 0 additions & 42 deletions openapi/components/paths/playermoderation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,48 +133,6 @@ paths:
$ref: ../responses/MissingCredentialsError.yaml
tags:
- playermoderation
'/auth/user/playermoderations/{playerModerationId}':
parameters:
- schema:
type: string
name: playerModerationId
in: path
required: true
description: 'Must be a valid `pmod_` ID.'
get:
summary: Get Player Moderation
tags:
- playermoderation
x-codeSamples:
$ref: "../codeSamples/playermoderation.yaml#/~1auth~1user~1playermoderations~1{playerModerationId}/get"
responses:
'200':
$ref: ../responses/playermoderation/PlayerModerationResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'404':
$ref: ../responses/playermoderation/PlayerModerationNotFoundError.yaml
operationId: getPlayerModeration
security:
- authCookie: []
description: Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`.
delete:
summary: Delete Player Moderation
operationId: deletePlayerModeration
security:
- authCookie: []
x-codeSamples:
$ref: "../codeSamples/playermoderation.yaml#/~1auth~1user~1playermoderations~1{playerModerationId}/delete"
responses:
'200':
$ref: ../responses/playermoderation/PlayerModerationRemovedSuccess.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'403':
$ref: ../responses/playermoderation/PlayerModerationDeleteOthersError.yaml
description: Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully.
tags:
- playermoderation
tags:
$ref: ../tags.yaml
components:
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 573deca

Please sign in to comment.