Standardize Open Cloud nextPageTokens

As a developer it’s currently confusing how to handle nextPageTokens across different endpoints. For example, https://apis.roblox.com/assets/v1/assets/{asset_id}/versions will not return a nextPageToken if there is not another page, which is expected behavior seen in legacy endpoints. However, the following endpoints will not return no nextPageToken if there is not another page, but will rather return a blank string (which doesn’t make a lot of sense). This makes it difficult to make a standard handler for Open Cloud, which is meant to offer more standardized behavior than legacy endpoints.

Endpoints:
https://apis.roblox.com/cloud/v2/groups/{group_id}/memberships
https://apis.roblox.com/cloud/v2/groups/{group_id}/roles
https://apis.roblox.com/cloud/v2/groups/{group_id}/join-requests
https://apis.roblox.com/cloud/v2/users/{user_id}/inventory-items
https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions
https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions:listLogs

Expected Behavior:

Unexpected Behavior:




2 Likes