added code types into README
This commit is contained in:
parent
2f7f63b620
commit
b8ef58e132
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user