diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 15:22:05 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-10-04 15:22:05 +0200 |
| commit | 20fe4b1e1cee75463cd63cfe202e05e0b61d941a (patch) | |
| tree | a395e1b96c5bedb4c0e8833a82d8e7d636630e88 /example.api | |
| parent | 5d5dd65cee63b8805a186d28660ed65072b3b88a (diff) | |
Simplify dir
Diffstat (limited to 'example.api')
| -rw-r--r-- | example.api | 19 |
1 files changed, 19 insertions, 0 deletions
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 <Array<String>> + -id <UUID> + -created_at <Date> + -parent_id <UUID> + -text <String> + -author <Author> + // Comments are also + // Allowed in the middle + ~>textUpdated(text <String>) + ->authorUpdated(author <Author>) + <~textWillUpdate(text <String>) + <-postWillRender(post <Forum.Models.Post>) + +>authorUpdated(author <Author>) + <+textWillUpdate(text <String>) + ::getAll(parent_id <UUID>) => Promise<Array<Forum.Models.Post>> #> NotFoundError,DisplayError + ::get(id <UUID>) => Promise<Forum.Models.Post> + #update(text <String>) => Promise<void> + #transform([transformer] <Function<T>(T) => boolean>) |