Ordered Data Stores (Beta)

OrderedDataStores

https://apis.roblox.com/ordered-data-stores

List

GET /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries

매개 변수

universeId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
max_page_size number
page_token string
order_by string
filter string

요청

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries' \
--header 'x-api-key: <insert-api-key>'

응답

200 - OK
OK
반환: object: ListEntriesResponse
entries array<Entry>
nextPageToken string

Create

POST /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries

매개 변수

universeId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
id string
필수
CreateEntryRequest CreateEntryRequest
Body
필수

요청

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries?id=<id>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'

응답

200 - OK
OK
반환: object: Entry
path string
id string
value number

Get

GET /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

매개 변수

universeId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
entry string
Path
필수

요청

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'

응답

200 - OK
OK
반환: object: Entry
path string
id string
value number

Delete

DELETE /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

매개 변수

universeId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
entry string
Path
필수

요청

curl

curl --location --request DELETE 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>'

응답

Update

PATCH /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}

매개 변수

universeIdId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
entry string
Path
필수
UpdateEntryRequest UpdateEntryRequest
Body
필수
allow_missing boolean

요청

curl

curl --location --request PATCH 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"value": <long>
}'

응답

200 - OK
OK
반환: object: Entry
path string
id string
value number

Increment

POST /v1/universes/{universeId}/orderedDataStores/{orderedDataStore}/scopes/{scope}/entries/{entry}:increment

매개 변수

universeId string
Path
필수
orderedDataStore string
Path
필수
scope string
Path
필수
entry string
Path
필수
incrementEntryRequest IncrementEntryRequest
Body
필수

요청

curl

curl --location 'https://apis.roblox.com/ordered-data-stores/v1/universes/<universeId>/orderedDataStores/<orderedDataStore>/scopes/<scope>/entries/<entry>:increment' \
--header 'x-api-key: <insert-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"amount": <long>
}'

응답

200 - OK
OK
반환: object: Entry
path string
id string
value number

개체

다음 개체는 수락되거나 반환되는 페이로드를 설명합니다. 이러한 개체가 사용되는 시기에 대한 자세한 정보는 각 개별 끝점을 참고하세요.

Entry

특성

path string
필수
id string
필수
value number
필수

IncrementEntryRequest

특성

amount number
필수

UpdateEntryRequest

특성

value number
필수

CreateEntryRequest

특성

value number
필수

ListEntriesResponse

특성

entries array<Entry>
필수
nextPageToken string
필수