CREATE KEYSPACE testspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
CREATE TABLE testspace.tblbook (
book_id uuid PRIMARY KEY,
book_author text,
book_isbn text,
book_pages int,
book_title text
);
http.POST http://localhost:8080/book
{
"book_id": "3fca62f3-53ba-4591-83d8-6236b616ad26",
"book_title": "cassandra",
"book_author": "Avinash Lakshman",
"book_isbn": "148-5-11-199810-1",
"book_pages": 255
}
http.GET http://localhost:8080/book
http.GET http://localhost:8080/book/{title}
http.PUT http://localhost:8080/book
{
"book_id": "3fca62f3-53ba-4591-83d8-6236b616ad26",
"book_title": "java",
"book_author": "Lakshman",
"book_isbn": "148-5-11-199810-1",
"book_pages": 300
}
http.DELETE http://localhost:8080/book/{book_id}