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
2 changes: 2 additions & 0 deletions openapi/components/paths/avatars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ paths:
responses:
'200':
$ref: ../responses/avatars/AvatarResponse.yaml
'400':
$ref: ../responses/avatars/UnableToCreateAvatarNowError.yaml
'401':
$ref: ../responses/FeaturedSetNotAdminError.yaml
tags:
Expand Down
8 changes: 7 additions & 1 deletion openapi/components/paths/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,13 @@ paths:
description: The binary blob of the png file.
tag:
type: string
description: Needs to be either icon, gallery, sticker or emoji
description: Needs to be either icon, gallery, sticker, emoji, or emojianimated
frames:
type: integer
description: Required for emojianimated. Total number of frames to be animated (2-64)
framesOverTime:
type: integer
description: Required for emojianimated. Animation frames per second (1-64)
animationStyle:
type: string
example: bats
Expand Down
11 changes: 11 additions & 0 deletions openapi/components/requests/CreateAvatarRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ type: object
properties:
assetUrl:
type: string
assetVersion:
type: string
platform:
$ref: ../schemas/Platform.yaml
created_at:
$ref: ../schemas/LocalDateTime.yaml
updated_at:
$ref: ../schemas/LocalDateTime.yaml
id:
$ref: ../schemas/AvatarID.yaml
name:
Expand All @@ -19,6 +27,9 @@ properties:
imageUrl:
type: string
minLength: 1
thumbnailImageUrl:
type: string
minLength: 1
releaseStatus:
$ref: ../schemas/ReleaseStatus.yaml
version:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response due to missing permissions.
content:
application/json:
schema:
$ref: ../../schemas/Error.yaml
examples:
Unable To Create Avatar Now Example:
value:
error:
message: "You can't create an avatar right now"
status_code: 400
3 changes: 3 additions & 0 deletions openapi/components/schemas/Avatar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ properties:
type: string
releaseStatus:
$ref: ./ReleaseStatus.yaml
searchable:
type: boolean
default: false
styles:
type: object
properties:
Expand Down
2 changes: 2 additions & 0 deletions openapi/components/schemas/LimitedWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ properties:
type: string
releaseStatus:
$ref: ./ReleaseStatus.yaml
storeId:
$ref: ./StoreID.yaml
tags:
description: ' '
items:
Expand Down
4 changes: 4 additions & 0 deletions openapi/components/schemas/LocalDateTime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: LocalDateTime
type: string
description: 'A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`)'
example: '12/12/2021 1:23:43 AM'
3 changes: 3 additions & 0 deletions openapi/components/schemas/StoreID.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
example: esto_713b247d-2b5d-41a0-bba3-50db28dc1498
title: StoreID
type: string
8 changes: 8 additions & 0 deletions openapi/components/schemas/TiliaStatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,13 @@ title: TiliaStatus
properties:
economyOnline:
type: boolean
economyState:
type: integer
plannedOfflineWindowStart:
type: string
format: date-time
plannedOfflineWindowEnd:
type: string
format: date-time
required:
- economyOnline
2 changes: 2 additions & 0 deletions openapi/components/schemas/World.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ properties:
type: string
releaseStatus:
$ref: ./ReleaseStatus.yaml
storeId:
$ref: ./StoreID.yaml
tags:
description: ' '
type: array
Expand Down