Skip to content

Get All Values

Description

This operation retrieves all values from a map.

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]/map/values

where:

Argument                Description
[hive-name] Name of a hive where the operation is performed.

Request Headers

None.

Request Body

None.

Response Body

A JSON array consisting of the map's values. Each individual value is of a JSON type.  If the specified map does not contain any key-value pairs, then an empty array is returned.

Example

The example below returns all values from the employeeNames map.

curl --location --request GET "https://xxxx.backendless.app/api/hive/company/map/employeeNames/values"

where:

Argument                Description
company Name of a hive where the operation is performed.
employeeNames Key name identifying a map.

Response Example

[  
    "John Armstrong",  
    "Rebecca Mobley",  
    "Nick Bush"  
]

Codeless Reference

map_api_get_all_values

where:

Argument                Description
hive name Name of a hive where the operation is performed.
key name Key name identifying a map.

Returns a list consisting of the map's values.

Consider the following Map storage:
map_apI_example_map_store_2

The example below gets all values from the "employeeNames" map:

map_api_example_get_all_values

The logic produces the following output:

map_api_example_get_all_values_2