Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

6/24/2020

Reading time:N/A min

dcreey1/cassandra-rest-api

by John Doe

Restful versioned API proof of concept using the following technologies:ESlintBabelExpressCassandra - using cassandra-driverMocha - unit testsGaze - homebrew file-watcher for automatic re-transpiling and express server re-loadingTo build the solution run the following command lines:npm installSend all API calls to:localhost:3000/{Version}VersionsContactsGET /contactsPOST /contactsContacts/{id}GET /contacts/{contact_id}PUT /contacts/{contact_id}DELETE /contacts/{contact_id}Example: GET localhost:3000/v1/contacts

Illustration Image

Restful versioned API proof of concept using the following technologies:

  • ESlint
  • Babel
  • Express
  • Cassandra - using cassandra-driver
  • Mocha - unit tests
  • Gaze - homebrew file-watcher for automatic re-transpiling and express server re-loading

To build the solution run the following command lines:

  • npm install

Send all API calls to:

  • localhost:3000/{Version}

Versions


  • Contacts
    • GET /contacts
    • POST /contacts
  • Contacts/{id}
    • GET /contacts/{contact_id}
    • PUT /contacts/{contact_id}
    • DELETE /contacts/{contact_id}

Example: GET localhost:3000/v1/contacts

Related Articles

spring
angular
rest

GitHub - jhipster/jhipster-sample-app-cassandra: This is a sample application created with JHipster, with the Cassandra option

jhipster

3/7/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

node