cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Consuming Third Party Rest API in Java code and mapping it to Neo4j database

I am working on a task which requires accessing a third party api.
Data received from the API will be in JSON Format.

My issue is :

  1. How do i use the apoc library function in my java code to load this json third party data to map to the neo4j entity and persist the data in the database
1 REPLY 1

accounts
Node Clone

in the past i have added apoc as dependency to my library and then simply import and call it like you'd call any java function ( here's an example )

        <dependency>
            <groupId>apoc</groupId>
            <artifactId>apoc</artifactId>
            <version>3.5.0.11</version>
            <scope>system</scope>
            <systemPath>${project.basedir}\apoc....jar</systemPath>
        </dependency> 
import apoc.create.Create;
....
new apoc.create.Create().vNode(labels, props);
....