Database Reference
In-Depth Information
Working with REST APIs
Neo4j also exposes several REST APIs for performing CRUD operations on the Neo4j
database. In this section, we will talk about the step-by-step process involved in fetching
data from the Neo4j database using REST APIs.
Perform the following steps to invoke the Neo4j REST APIs:
1. Download any tool such as SoapUI, which provides creation and execution of
REST calls.
2. Open your tool and execute the following request and parameters:
◦ Request method type: POST
◦ Request URL: http://localhost:7474/db/data/transac-
tion
◦ Request headers: Accept: application/json; char-
set=UTF-8 and Content-Type: application/json
◦ JSONRequest: {"statements": [{"statement" : "MATCH
(n) return n;"}]
The result would be a JSON response containing data inserted in the previous example.
Search WWH ::




Custom Search