Get Value¶
Description¶
This operation retrieves a value associated with the specified key.
Method¶
GET
Endpoint URL¶
Important
Make sure to replace xxxx in the domain name in the request specification below to the one assigned to your application.
https://xxxx.backendless.app/api/hive/[hive-name]/key-value/[key]
where:
Argument | Description |
---|---|
[hive-name] |
Name of a hive where the operation is performed. |
[key] |
Key name identifying a key-value pair. |
Request Headers¶
None.
Request Body¶
None.
Response Body¶
Тhe value associated with the specified key. If the key does not exist, the operation returns null
.
Example¶
The example below retrieves the value associated with the Japan
key.
curl --location --request GET "https://xxxx.backendless.app/api/hive/countries/key-value/Japan"
where:
Argument | Description |
---|---|
countries |
Name of a hive where the operation is performed. |
Japan |
Key name to get the value for. |
Codeless Reference¶
where:
Argument | Description |
---|---|
hive name |
Name of a hive where the operation is performed. |
key name |
Key name identifying a key-value pair. |
Returns value for the specified key.
Consider the following Key Value storage:
The example below gets value for the "Japan"
key:
The output will look as shown below after the Codeless logic runs.