This is an example REST API showing how to hook together Play Framework and Cassandra (using Phantom). Phantom has been isolated to the repository interpreter.
See the quill branch for a Quill backed repository
The phantom branch also has pagination which is not implemented in the Quill branch.
This project was created using giter8:
sbt new playframework/play-scala-seed.g8
CREATE KEYSPACE persons WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
};
CREATE TABLE persons.person_info (
id UUID,
gender TEXT,
student_id TEXT,
first_name TEXT,
last_name TEXT,
PRIMARY KEY (id)
);