Over a million developers have joined DZone.

Authoring Interactive APIs Using Neo4j Swagger

DZone's Guide to

Authoring Interactive APIs Using Neo4j Swagger

· Java Zone ·
Free Resource

Delivering modern software? Atomist automates your software delivery experience.

When developing web applications it becomes very useful to start by authoring an API over your data model in order to expose certain services to data-driven components of your front-end application.

For Neo4j, the best API authoring solution out there is Neo4j Swagger.

What does Neo4j Swagger do?

Neo4j Swagger is an API authoring solution that runs exclusively on top of a Neo4j graph database and was created by Mat Tyndal as an open-source project forked from Swagger.

Swagger is a Node.js open-source project that enables you to author interactive APIs on top of your data model.

What does the architecture look like?

Your front-end web app, which looks like this:


Makes HTTP REST requests to Neo4j Swagger, which looks like this:


Which then makes parameterized Cypher queries to a Neo4j database instance, which can be easily hosted in the cloud on either http://graphhost.com/ or http://www.graphenedb.com/

Neo4j then returnsresultstoSwagger, which then returnsresults back to your web app.

That's it. It's a super simple architecture and it's all open-source and ready for you to start programming with. You can clone my movie recommendation example app in the links above.

If you're interested in reviewing some slides from a recent talk I did about authoring this API and front-end application, head on over to SlideShare: http://www.slideshare.net/KennyBastani/building-killer-apps-with-neo4j-20

Start automating your delivery right there on your own laptop, today! Get the open source Atomist Software Delivery Machine.


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}