Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ecf35c

Browse files
authored
Changes to ListWorlds
Added some fields and reworded a few things
1 parent 6d6e612 commit 3ecf35c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

WorldAPI/ListWorlds.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,27 @@ Field | Type | Optional | Description
3030
------|------|----------|------------
3131
featured | bool | yes | is the world featured
3232
sort | `SortOptions` | yes | How to sort the worlds
33-
user | `UserOptions` | yes | who the creator may be
33+
user | string | yes | Set to `me` for searching own worlds
3434
userId | string | yes | Filter by creator id, use `me` for only worlds owned by current user
35-
n | int | yes | How many users to return
36-
offset | int | yes | How many users to skip
35+
n | int | yes | How many worlds to return
36+
order | `OrderOptions` | yes | Result ordering
37+
offset | int | yes | How many worlds to skip
3738
search | string | yes | Filter by name
3839
tag | Comma seperated strings | yes | Filter by tag
3940
notag | Comma seperated strings | Tags to exclude
4041
releaseStatus | `ReleaseStatus` | yes | Filter by release status
41-
maxUnityVersion | string | yes | The max unity version the world support
42+
maxUnityVersion | string | yes | Current unity version the game is using
4243
minUnityVersion | string | yes | The min unity version the world support
43-
maxAssetVersion | string | yes | The max asset version the world support
44+
maxAssetVersion | string | yes | Current asset version the game is using
4445
minAssetVersion | string | yes | The min asset version the world support
45-
platform | string | yes | The platform the world support
46+
platform | string | yes | The platform the world supports (usually standalonewindows)
4647

4748
Featured are set as:
4849
- sort=order, featured=true
4950

5051
Trending is set as:
5152
- sort=popularity, featured=false
5253

53-
### UserOptions
54-
55-
- me
56-
- friends
57-
5854
### SortOptions
5955

6056
- popularity
@@ -63,6 +59,10 @@ Trending is set as:
6359
- order
6460
- _created_at
6561
- _updated_at
62+
63+
### OrderOptions
64+
- ascending
65+
- descending
6666

6767
## Returns
6868

@@ -71,10 +71,11 @@ Array of:
7171
Field | Type | Description
7272
------|------|------------
7373
id | string | World ID
74-
name | string | World Name
74+
name | string | World name
7575
authorName | string | The name of the creator
76-
totalLikes | int | How many likes this world has
77-
totalVisits | int | How many visits this world has
76+
totalLikes | int | How many likes the world has
77+
totalVisits | int | How many visits the world has
78+
capacity | int | World player limit
7879
imageUrl | string | URL to the image of the world
7980
thumbnailImageURL | string | URL to the image of the world (small)
8081
isSecure | boolean | unknown (probably password?)

0 commit comments

Comments
 (0)