Skip to content

Commit 59d69fc

Browse files
Miner28ariesclarkFoorack
authored
Basic Groups API (vrchatapi#197)
* wip: group api * Typo Fixes * CreateGroupRequest, Typo Fixes * GetUserList * Add new endpoints to path.yaml * Update lint, fixes * Create GroupID.yaml * Create GroupID, GroupMemberID, GroupRoleID * Create GroupGalleryID.yaml * Delete GroupMemberID.yaml * Revert "Delete GroupMemberID.yaml" This reverts commit 0c1592d. * . * GroupMember * GroupGallery * . * Update GroupMyMember.yaml * Remove mention of guilds * GroupNotFoundError description * Make GroupShortCode regex compliant * . * Update lint * gitignore update * operationId on paths./groups.post * Sort tags * Groups * CreateGroupRoleRequest * Group Join, Leave * User Requests, Path * List Group Requests * Fix Group Requests * Group Invites, Requests * Add Description, fixes * Typos, Fixes * Minor update to route descriptions * Clear lint errors * Add security headers and sort * Fix duplicate array descriptions (rendering bug) * Minor title fix in users.yaml * Add List Group Members Co-authored-by: Aries Clark <[email protected]> Co-authored-by: Foorack / Max Faxälv <[email protected]>
1 parent ed6735c commit 59d69fc

39 files changed

+1219
-3383
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**/node_modules
2-
dist
2+
dist
3+
.idea

openapi/components/parameters.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,24 @@ fileId:
8686
type: string
8787
example: file_00000000-0000-0000-0000-000000000000
8888
pattern: 'file_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
89+
description: Must be a valid file ID.
90+
groupId:
91+
name: groupId
92+
in: path
93+
required: true
94+
schema:
95+
type: string
96+
example: grp_00000000-0000-0000-0000-000000000000
97+
pattern: 'grp_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
98+
description: Must be a valid group ID.
99+
groupRoleId:
100+
name: groupRoleId
101+
in: path
102+
required: true
103+
schema:
104+
type: string
105+
example: grol_00000000-0000-0000-0000-000000000000
106+
pattern: 'grol_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'
89107
versionId:
90108
name: versionId
91109
in: path
@@ -94,6 +112,7 @@ versionId:
94112
type: integer
95113
minimum: 1
96114
example: 1
115+
description: Version ID of the asset.
97116
fileType:
98117
name: fileType
99118
in: path
@@ -105,12 +124,14 @@ fileType:
105124
- signature
106125
- delta
107126
example: file
127+
description: Type of file.
108128
userId:
109129
name: userId
110130
in: path
111131
required: true
112132
schema:
113133
type: string
134+
description: Must be a valid user ID.
114135
userIdQuery:
115136
name: userId
116137
in: query
@@ -215,6 +236,7 @@ worldId:
215236
required: true
216237
schema:
217238
type: string
239+
description: Must be a valid world ID.
218240
instanceId:
219241
name: instanceId
220242
in: path

openapi/components/paths.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,29 @@
9292
"/auth/user/friends/{userId}":
9393
$ref: "./paths/friends.yaml#/paths/~1auth~1user~1friends~1{userId}"
9494

95+
# groups
96+
97+
"/groups":
98+
$ref: "./paths/groups.yaml#/paths/~1groups"
99+
"/groups/{groupId}":
100+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}"
101+
"/groups/{groupId}/roles":
102+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1roles"
103+
"/groups/{groupId}/members":
104+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1members"
105+
"/groups/{groupId}/roles/{groupRoleId}":
106+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1roles~1{groupRoleId}"
107+
"/groups/{groupId}/join":
108+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1join"
109+
"/groups/{groupId}/leave":
110+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1leave"
111+
"/groups/{groupId}/requests":
112+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1requests"
113+
"/groups/{groupId}/invites":
114+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1invites"
115+
"/groups/{groupId}/invites/{userId}":
116+
$ref: "./paths/groups.yaml#/paths/~1groups~1{groupId}~1invites~1{userId}"
117+
95118
# invite
96119

97120
"/invite/{userId}":
@@ -176,6 +199,10 @@
176199
$ref: "./paths/users.yaml#/paths/~1users~1{username}~1name"
177200
"/users/{userId}":
178201
$ref: "./paths/users.yaml#/paths/~1users~1{userId}"
202+
"/users/{userId}/groups":
203+
$ref: "./paths/users.yaml#/paths/~1users~1{userId}~1groups"
204+
"/users/{userId}/groups/requested":
205+
$ref: "./paths/users.yaml#/paths/~1users~1{userId}~1groups~1requested"
179206

180207
# worlds
181208

@@ -195,3 +222,4 @@
195222
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1publish"
196223
"/worlds/{worldId}/{instanceId}":
197224
$ref: "./paths/worlds.yaml#/paths/~1worlds~1{worldId}~1{instanceId}"
225+

openapi/components/paths/files.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ paths:
193193
in: query
194194
name: partNumber
195195
required: false
196+
description: The part number to start uploading. If not provided, the first part will be started.
197+
deprecated: true
196198
security:
197199
- apiKeyCookie: []
198200
authCookie: []

0 commit comments

Comments
 (0)