Merge branch 'main' of https://gitea.tpsoft.org/TPsoft.org/APIlite
This commit is contained in:
commit
8502508a11
@ -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.
|
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
|
<?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
|
When you run this subfile through the webserver, you will see the JSON documentation in the browser
|
||||||
|
|
||||||
```
|
```js
|
||||||
{
|
{
|
||||||
"name": "APIcalculator",
|
"name": "APIcalculator",
|
||||||
"html_version": "http://localhost/APIlite/test/APIcalculator.php?format=html",
|
"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
|
To connect to the API from TypeScript (e.g. Vue application) it is possible to download the backend script
|
||||||
|
|
||||||
```
|
```ts
|
||||||
/**
|
/**
|
||||||
* Generated by APIlite
|
* Generated by APIlite
|
||||||
* https://gitea.tpsoft.org/TPsoft.org/APIlite
|
* https://gitea.tpsoft.org/TPsoft.org/APIlite
|
||||||
|
Loading…
x
Reference in New Issue
Block a user