Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
606 changes: 476 additions & 130 deletions openapi.yaml

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions openapi/components/responses/CreateWorldNotAllowedYetError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response when trying create a world without having the neccesary Trust rank yet.
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
examples:
400 Can't Create World Yet:
value:
error:
message: \"You can't create a world right now\"
status_code: 400
11 changes: 11 additions & 0 deletions openapi/components/responses/SeeOtherUserFavoritesError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response when trying to see favourites of another user without sufficient admin permissions.
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
examples:
404 Cant See Other Users Favorites:
value:
error:
message: 403 You can't see another user's favorites
status_code: 403
11 changes: 11 additions & 0 deletions openapi/components/responses/SeeOtherUserRecentsError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response when trying to accept a see recently visited worlds of another user without sufficient admin permissions.
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
examples:
403 Only See Own Recents:
value:
error:
message: \"You can only see your own recent worlds!\"
status_code: 403
11 changes: 11 additions & 0 deletions openapi/components/responses/WorldNotFoundError.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response when trying to show information about a non-existent world. Sometimes returns with `model <worldId> not found` instead of `World <worldId not found`.
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
examples:
404 World Not Found:
value:
error:
message: World wrld_ba913a96-fac4-4048-a062-9aa5db092812 not found
status_code: 404
4 changes: 1 addition & 3 deletions openapi/components/schemas/CurrentUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ properties:
type: string
format: date-time
last_platform:
type: string
$ref: ./Platform.yaml
allowAvatarCopying:
type: boolean
status:
Expand Down Expand Up @@ -142,8 +142,6 @@ required:
- fallbackAvatar
- currentAvatar
- currentAvatarAssetUrl
# Note: This is technically required, but does not generate as nullable if marked as required
# - accountDeletionDate
- acceptedTOSVersion
- steamId
- steamDetails
Expand Down
13 changes: 13 additions & 0 deletions openapi/components/schemas/LimitedUnityPackage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: ''
type: object
title: LimitedUnityPackage
properties:
platform:
$ref: ./Platform.yaml
unityVersion:
type: string
minLength: 1
example: 2018.4.14f1
required:
- platform
- unityVersion
2 changes: 1 addition & 1 deletion openapi/components/schemas/LimitedUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ properties:
developerType:
$ref: ./DeveloperType.yaml
last_platform:
type: string
$ref: ./Platform.yaml
status:
$ref: ./UserStatus.yaml
isFriend:
Expand Down
94 changes: 50 additions & 44 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
@@ -1,72 +1,78 @@
title: LimitedWorld
description: ''
type: object
properties:
id:
$ref: ./WorldID.yaml
name:
type: string
minLength: 1
authorId:
$ref: ./UserID.yaml
type: string
minLength: 1
authorName:
type: string
minLength: 1
capacity:
type: number
created_at:
type: string
format: date
favorites:
type: number
heat:
type: number
id:
$ref: ./WorldID.yaml
imageUrl:
type: string
labsPublicationDate:
minLength: 1
thumbnailImageUrl:
type: string
# This is a date string unless there is no date, then it's 'none'
# oneOf: date, string did not generate
# format: date
name:
minLength: 1
releaseStatus:
type: string
occupants:
type: number
minLength: 1
organization:
type: string
popularity:
type: number
publicationDate:
type: string
# This is a date string unless there is no date, then it's 'none'
# oneOf: date, string did not generate
# format: date
releaseStatus:
$ref: ./ReleaseStatus.yaml
minLength: 1
tags:
type: array
items:
$ref: ./Tag.yaml
thumbnailImageUrl:
type: object
favorites:
type: number
created_at:
type: string
minLength: 1
updated_at:
type: string
minLength: 1
publicationDate:
type: string
minLength: 1
labsPublicationDate:
type: string
# TODO
minLength: 1
unityPackages:
type: array
uniqueItems: true
minItems: 1
items:
type: object
updated_at:
type: string
format: date
$ref: ./LimitedUnityPackage.yaml
popularity:
type: number
heat:
type: number
occupants:
type: number
required:
- id
- name
- authorId
- authorName
- capacity
- createdAt
- favorites
- heat
- id
- imageUrl
- name
- organization
- popularity
- publicationDate
- thumbnailImageUrl
- releaseStatus
- organization
- tags
- thumbnailImageUrl
- favorites
- created_at
- updated_at
- publicationDate
- labsPublicationDate
- unityPackages
- updatedAt
- popularity
- heat
- occupants
29 changes: 15 additions & 14 deletions openapi/components/schemas/MIMEType.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
type: string
title: MIMEType
enum:
- 'image⁄jpeg'
- 'image⁄jpg'
- 'image⁄png'
- 'image⁄webp'
- 'image⁄gif'
- 'image⁄bmp'
- 'image⁄svg+xml'
- 'image⁄tiff'
- 'application⁄x-avatar'
- 'application⁄x-world'
- 'application⁄gzip'
- 'application/x-rsync-signature'
- 'application/x-rsync-delta'
- 'application/octet-stream'
- image/jpeg
- image/jpg
- image/png
- image/webp
- image/gif
- image/bmp
- image/svg+xml
- image/tiff
- application/x-avatar
- application/x-world
- application/gzip
- application/x-rsync-signature
- application/x-rsync-delta
- application/octet-stream
example: image/jpeg
5 changes: 5 additions & 0 deletions openapi/components/schemas/Platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: string
title: Platform
enum:
- standalonewindows
- android
53 changes: 53 additions & 0 deletions openapi/components/schemas/UnityPackage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
description: ''
type: object
x-examples:
example-1:
id: unp_52b12c39-4163-457d-a4a9-630e7aff1bff
assetUrl: 'https://api.vrchat.cloud/api/1/file/file_cd0caa7b-69ba-4715-8dfe-7d667a9d2537/65/file'
assetUrlObject: {}
pluginUrl: ''
pluginUrlObject: {}
unityVersion: 2018.4.14f1
unitySortNumber: 20180414000
assetVersion: 4
platform: standalonewindows
created_at: '2020-09-10T06:13:27.777Z'
title: UnityPackage
properties:
id:
$ref: ./UnityPackageID.yaml
assetUrl:
type: string
minLength: 1
assetUrlObject:
type: object
pluginUrl:
type: string
pluginUrlObject:
type: object
unityVersion:
type: string
minLength: 1
example: 2018.4.12f1
unitySortNumber:
type: number
minimum: 0
assetVersion:
type: number
platform:
$ref: ./Platform.yaml
created_at:
type: string
minLength: 1
format: date-time
required:
- id
- assetUrl
- assetUrlObject
- pluginUrl
- pluginUrlObject
- unityVersion
- unitySortNumber
- assetVersion
- platform
- created_at
4 changes: 4 additions & 0 deletions openapi/components/schemas/UnityPackageID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: UnityPackageID
type: string
pattern: '(unp)_[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}'
example: unp_52b12c39-4163-457d-a4a9-630e7aff1bff
2 changes: 1 addition & 1 deletion openapi/components/schemas/User.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ properties:
type: string
format: date-time
last_platform:
type: string
$ref: ./Platform.yaml
allowAvatarCopying:
type: boolean
status:
Expand Down
Loading