This commit is contained in:
Igor Miňo 2025-06-01 19:20:11 +02:00
commit 8502508a11

View File

@ -6,7 +6,7 @@ A set of tools to simplify the work of creating backend APIs for your frontend p
For example, we create an API for calculator. So we create class `APIcalculator` and store in file `test/APIcalculator.php` where we defined each actions for API as public method.
```
```php
<?php
/**
@ -90,7 +90,7 @@ It is important to extend the `APIcalculator` class with the `\TPsoft\APIlite\AP
When you run this subfile through the webserver, you will see the JSON documentation in the browser
```
```js
{
"name": "APIcalculator",
"html_version": "http://localhost/APIlite/test/APIcalculator.php?format=html",
@ -194,7 +194,7 @@ and there is also an HTML version available
To connect to the API from TypeScript (e.g. Vue application) it is possible to download the backend script
```
```ts
/**
* Generated by APIlite
* https://gitea.tpsoft.org/TPsoft.org/APIlite