Global Dictionary REST APIs
Overview
The Global Dictionary REST API adds support for retrieving, updating, and deleting the values in the global dictionary defined for a site.
Administration
Get All Global Dictionary Key Values
Get All Global Dictionary Key Values | ||
---|---|---|
Description |
This endpoint returns all the key value pairs stored in the global dictionary for a site. |
|
URI Endpoint |
/rest/v17/globalDict |
|
Endpoint Parameters |
This endpoint supports the following query specifications. For more information, see Manage Collections.
|
|
HTTP Method | GET | |
Request Body Parameters |
None |
|
Response Body Parameters |
The JSON data for all global dictionary key values. |
https://site.oracle.com/rest/v17/globalDict
{ "items": [{ "key": "Key1", "value": "ba8643c86eb3443db70bb21b80ef8ba6493fbfa551524bc8d815!-1499002922", "minTimeToLive": 1440, "dateModified": "2024-03-11T10:41:28.000Z", "dateAdded": "2024-03-11T10:41:28.000Z" }, { "key": "Key2", "value": "1c265a45ad7e4b1f91fe3b87561150fa4651bcbbcbfd50fe0378!-1499002922", "minTimeToLive": 1440, "dateModified": "2024-03-11T10:40:26.000Z", "dateAdded": "2024-03-11T10:40:26.000Z" } ], "offset": 0, "limit": 1000, "count": 2, "hasMore": false, "links": [{ "rel": "canonical", "href": "https://sitename.oracle.com/rest/v17/globalDict" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v17/globalDict?offset=0&limit=1000" } ] }
Get Global Dictionary Key Value
https://site.oracle.com/rest/v17/globalDict/key1
{ "key": "key1", "value": "1", "minTimeToLive": 2500, "dateModified": "2024-03-11T14:25:11.000Z", "dateAdded": "2024-03-11T14:25:11.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v17/globalDict/key1" } ] }
Add or Update Global Dictionary Key Values
https://site.oracle.com/rest/v17/globalDict
{ "key": "key1", "value": "1", "minTimeToLive": 2500 }
Delete a Global Dictionary Key Value
https://site.oracle.com/rest/v17/globalDict/key1