Ready to talk about your DBaaS needs? Meet with us. Win a Tesla.* .

Toggle Menu

Accessing Cassandra with the Stargate REST API

REST APIs are a popular way to expose interfaces in microservice and cloud-native architectures. Stargate makes it easy to serve a RESTful API directly from any Cassandra database, allowing you to access data by translating CQL into simple HTTP operations.

What Is A RESTful API?

What Is A RESTful API?

REST stands for Representational State Transfer. The RESTful API style was invented by Roy Fielding and his colleagues in 2000 as a way of using standard HTTP commands like POST, PUT, GET, DELETE, and others to support the exchange of data using formats such as JSON. This style of interface promotes a clean separation between the implementation of clients and servers. Over time the RESTful style has emerged as the most common way of specifying interfaces for stateless microservices that can scale independently and store their data in databases like Cassandra.

Why Use The REST API With Cassandra?

REST is the most popular API style, so you get all the benefits of scale with a well understood interface pattern. Also helpful when drivers or gRPC clients aren’t available for your language, or language version.

When the Stargate REST API is added to an existing Cassandra deployment, it automatically creates HTTP endpoints that allow you to perform create, read, update, and delete (CRUD) operations on tables in your database. You can also create new database tables directly via the API.


Why Use The REST API With Cassandra?
How To Get The Stargate REST API

How To Get The Stargate REST API

is an open-source data gateway and is automatically  available as a managed service in DataStax Astra. If you already have an Astra database, the Stargate REST API is already enabled. If you have access to your own self-hosted Cassandra cluster, see the Stargate documentation for the .  Stargate is also distributed with users and .

Try It Out

With the Stargate REST API you can serve RESTful APIs directly from Cassandra, allowing you to execute common CQL operations. Here’s two ways you can try it yourself.

Explore The Stargate REST API In DataStax Astra With This Next.Js Starter App.

Explore The Stargate REST API In DataStax Astra With This Next.Js Starter App.

More Resources

Items related to Stargate REST API

Stargate.io

Stargate.io

Everything you need to get up to speed on all things Stargate.

Stargate Discord Server

Stargate Discord Server

Join our discord room to chat with the contributors and meet the community.

Community

Community

Learn about how you can get involved in the Stargate project.

Request an Astra DB demo and see how it can make Cassandra easier!


Facebook logo
Facebook logo
Facebook logo
Facebook logo
Facebook logo
Facebook logo

DataStax, is a registered trademark of DataStax, Inc.. Apache, Apache Cassandra, Cassandra, Apache Pulsar, and Pulsar are either registered trademarks or trademarks of the Apache Software Foundation.