Added Author query, creation handlers

This commit is contained in:
2023-06-03 22:32:27 +10:00
parent e6b51f5374
commit 71c201cae5
5 changed files with 181 additions and 36 deletions
+20 -27
View File
@@ -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"
}
]