订购数据存储(测试)

*此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按 此处

OrderedDataStores

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

列表

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
好的
返回: object
entries array<object>
nextPageToken string

创建

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

参数

universeId string
Path
必填
orderedDataStore string
Path
必填
scope string
Path
必填
id string
必填
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
好的
返回: object
id string
path string
value number

获取

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
好的
返回: object
id string
path string
value number

删除

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>'

答复

更新

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

参数

universeIdId string
Path
必填
orderedDataStore string
Path
必填
scope string
Path
必填
entry string
Path
必填
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
好的
返回: object
id string
path string
value number

增量

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

参数

universeId string
Path
必填
orderedDataStore string
Path
必填
scope string
Path
必填
entry string
Path
必填
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
好的
返回: object
id string
path string
value number

对象

下列对象描述了接受或返回的有效载荷。请参阅每个单独的端点,以了解更多关于这些对象用途的信息。

CreateEntryRequest

属性

value number

Entry

属性

id string
path string
value number

IncrementEntryRequest

属性

amount number

ListEntriesResponse

属性

entries array<object>
nextPageToken string

UpdateEntryRequest

属性

value number