rohitsakala CassandraRestfulAPI
License: No License Provided
Language: HTML
=====================
CassandraRestfulAPI project exposes the cassandra data tables and nodes with the help of Restful API's. The project follows the standard Restful API rules. This project is developed as Major project of the Cloud Computing course by Team 15. The project is developed using Python Driver provided by Datastax using Flask framework.
$ sudo pip install Flask
Follow these steps to install Cassandra
Follow these steps to install python cassandra driver Python Driver Cassandra
sudo pip install flask-mongoengine
sudo pip install -U flask_paginate
First is to start cassandra. Second is to run flask i.e python main.py
. Go to https:127:0.0.1:5000/ and use the following API's.
[GET] http://127.0.0.1:5000/nodes/
[GET] http://127.0.0.1:5000/nodes/nodeid
[POST] http://127.0.0.1:5000/nodes/
* { 'username' : username , 'password' : password, 'ip' : ip }
[DELETE] http://127.0.0.1:5000/nodes/nodeid
* { 'username' : username , 'password' : password }
[GET] http://127.0.0.1:5000/keyspaces/
[GET] http://127.0.0.1:5000/keyspaces/keyspaceid
[POST] http://127.0.0.1:5000/keyspaces/
* { 'name' : name , 'replicationFactor' : number }
[PUT] http://127.0.0.1:5000/keyspaces/keyspaceid
* { 'replicationFactor' : number }
[DELETE] http://127.0.0.1:5000/keyspaces/keyspaceid
[GET] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/
[GET] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid
[POST] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/
* { 'name' : name }
[DELETE] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid
[GET] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid/entrys/
[GET] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid/entrys/entryname
[POST] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid/entrys/
* { 'field1' : field name , 'field1_type' : field data type .... }
[DELETE] http://127.0.0.1:5000/keyspace/keyspaceid/columnfamilys/columnfamilyid/entrys/entryname
######Note:- 10.1.36.68 is the seed ######Note:- In delete node code, path is the directory where cassandra is installed
##More Info
Mail :- rohitsakala@gmail.com
Join Our Newsletter!
Sign up below to receive email updates and see what's going on with our company.