From 20fe4b1e1cee75463cd63cfe202e05e0b61d941a Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 4 Oct 2023 15:22:05 +0200 Subject: Simplify dir --- example.api | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 example.api (limited to 'example.api') diff --git a/example.api b/example.api new file mode 100644 index 0000000..37e08d8 --- /dev/null +++ b/example.api @@ -0,0 +1,19 @@ +Forum.Models.Post + +glyphs > + -id + -created_at + -parent_id + -text + -author + // Comments are also + // Allowed in the middle + ~>textUpdated(text ) + ->authorUpdated(author ) + <~textWillUpdate(text ) + <-postWillRender(post ) + +>authorUpdated(author ) + <+textWillUpdate(text ) + ::getAll(parent_id ) => Promise> #> NotFoundError,DisplayError + ::get(id ) => Promise + #update(text ) => Promise + #transform([transformer] (T) => boolean>) -- cgit