mirror of
https://github.com/Ratstail91/sineql-demo.git
synced 2026-05-05 23:30:11 +10:00
Added Author query, creation handlers
This commit is contained in:
+20
-27
@@ -13,7 +13,7 @@ Content-Type: text/plain
|
||||
|
||||
create Book [
|
||||
{
|
||||
create title "The Philosophers Kidney Stone"
|
||||
create title "The Philosopher's Kidney Stone"
|
||||
}
|
||||
{
|
||||
create title "The Chamber Pot of Secrets"
|
||||
@@ -42,32 +42,32 @@ Content-Type: text/plain
|
||||
|
||||
update Book [
|
||||
{
|
||||
match title "The Philosophers Kidney Stone"
|
||||
update published "1969-04-21"
|
||||
match title "The Philosopher's Kidney Stone"
|
||||
update published "1997-06-26"
|
||||
}
|
||||
{
|
||||
match title "The Chamber Pot of Secrets"
|
||||
update published "1969-04-22"
|
||||
update published "1998-07-02"
|
||||
}
|
||||
{
|
||||
match title "The Prisoner of Aunt Kazban"
|
||||
update published "1969-04-23"
|
||||
update published "1999-07-08"
|
||||
}
|
||||
{
|
||||
match title "The Goblet of the Fire Cocktail"
|
||||
update published "1969-04-24"
|
||||
update published "2000-07-08"
|
||||
}
|
||||
{
|
||||
match title "The Order for Kleenex"
|
||||
update published "1969-04-25"
|
||||
update published "2003-06-21"
|
||||
}
|
||||
{
|
||||
match title "The Half-Priced Pharmacy"
|
||||
update published "1969-04-26"
|
||||
update published "2005-07-16"
|
||||
}
|
||||
{
|
||||
match title "Yeah, I Got Nothing"
|
||||
update published "1969-04-27"
|
||||
update published "2007-07-21"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -76,27 +76,20 @@ update Book [
|
||||
POST http://localhost:4000/sineql HTTP/1.1
|
||||
Content-Type: text/plain
|
||||
|
||||
delete Book [
|
||||
create Author [
|
||||
{
|
||||
match title "The Philosophers Kidney Stone"
|
||||
create name "Just Kidding"
|
||||
match books [
|
||||
{
|
||||
match title "Yeah, I Got Nothing"
|
||||
}
|
||||
{
|
||||
match title "The Half-Priced Pharmacy"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
match title "The Chamber Pot of Secrets"
|
||||
}
|
||||
{
|
||||
match title "The Prisoner of Aunt Kazban"
|
||||
}
|
||||
{
|
||||
match title "The Goblet of the Fire Cocktail"
|
||||
}
|
||||
{
|
||||
match title "The Order for Kleenex"
|
||||
}
|
||||
{
|
||||
match title "The Half-Priced Pharmacy"
|
||||
}
|
||||
{
|
||||
match title "Yeah, I Got Nothing"
|
||||
create name "Mark Twain"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user