From a90896ff463a20bd2fcda96d02adefdfb8e3c52d Mon Sep 17 00:00:00 2001 From: igor Date: Wed, 28 May 2025 17:56:57 +0200 Subject: [PATCH] fixed `new APIcalculator();` in README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 127b33a..d2ee976 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,9 @@ class APIcalculator extends \TPsoft\APIlite\APIlite return $a / $b; } } + +new APIcalculator(); + ``` It is important to extend the `APIcalculator` class with the `\TPsoft\APIlite\APIlite` class, which will provide the entire API servicing according to public methods along with JSON and HTML documentation. The HTML documentation is generated based on the documentation snippet for each method.