Database Reference
In-Depth Information
Managing schema with REST
Let's create/retrieve/delete indexes using the REST API and use tools such as SoapUI or
extensions to the Chrome / Firefox browser (advanced REST client or REST easy), which
support testing of REST-based services / representation to execute the JSON request with
the provided configuration.
Creating an index on
Artists(Age)
. Use the following configuration in your REST-
based testing tool:
• The request method type is
POST
• The request URL for creating an index is
http://<HOST>:<PORT>/db/
data/schema/ index/Artist
• The headers are
Accept: application/json; charset=UTF-8
and
Content-Type: application/json
• Put the following JSON request in the box provided for posting JSON request and
execute it:
{"property_keys" : [ "Age" ]}
The preceding REST request will return the label and property on which the index is cre-
ated—
Artists(Age)
. The response of the preceding REST request will be similar to
the results shown in the following screenshot: