POST ONE READER

POST {{base_doc_url}}{{doc_api}}/{{namespace}}/collections/{{collection}}

Request Body

{"reader"=>{"name"=>"Amy Smith", "user_id"=>"12346", "birthdate"=>"10-01-1980", "email"=>{"primary"=>"asmith@gmail.com", "secondary"=>"amyispolite@aol.com"}, "address"=>{"primary"=>{"street"=>"200 Antigone St", "city"=>"Nevertown", "state"=>"MA", "zip-code"=>55555}, "secondary"=>{"street"=>"850 2nd St", "city"=>"Evertown", "state"=>"MA", "zip-code"=>55556}}, "reviews"=>[{"book_title"=>"Moby Dick", "rating"=>4, "review-date"=>"04-25-2002", "comment"=>"It was better than I thought."}, {"book_title"=>"Pride and Prejudice", "rating"=>2, "review-date"=>"12-02-2002", "comment"=>"It was just like the movie."}]}}

HEADERS

KeyDatatypeRequiredDescription
X-Cassandra-Tokenstring(Required) The token returned from the authorization endpoint. Use this token in each request to the database.
Content-Typestring

RESPONSES

status: Created

{"name":"killrvideo"}