first commit
This commit is contained in:
commit
62023f30f5
167
README.md
Normal file
167
README.md
Normal file
@ -0,0 +1,167 @@
|
||||
# OpenAPIClient-php
|
||||
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
For more information, please visit [http://europharmacy.gr/contact/](http://europharmacy.gr/contact/).
|
||||
|
||||
## Installation & Usage
|
||||
|
||||
### Requirements
|
||||
|
||||
PHP 7.4 and later.
|
||||
Should also work with PHP 8.0.
|
||||
|
||||
### Composer
|
||||
|
||||
To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "https:////.git"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"/": "*@dev"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Then run `composer install`
|
||||
|
||||
### Manual Installation
|
||||
|
||||
Download the files and include `autoload.php`:
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
Please follow the [installation procedure](#installation--usage) and then run the following:
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
|
||||
|
||||
// Configure HTTP basic authorization: basic
|
||||
$config = Europharmacy\EuromedicaClient\Configuration::getDefaultConfiguration()
|
||||
->setUsername('YOUR_USERNAME')
|
||||
->setPassword('YOUR_PASSWORD');
|
||||
|
||||
|
||||
$apiInstance = new Europharmacy\EuromedicaClient\Api\CustomersApi(
|
||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||
new GuzzleHttp\Client(),
|
||||
$config
|
||||
);
|
||||
$search_by_name = ''; // string |
|
||||
$search_by_phone = ''; // string |
|
||||
$search_by_amka = ''; // string |
|
||||
$search_by_afm = ''; // string |
|
||||
$page = 1; // int |
|
||||
$size = 1000; // int |
|
||||
|
||||
try {
|
||||
$result = $apiInstance->apiCustomersGet($search_by_name, $search_by_phone, $search_by_amka, $search_by_afm, $page, $size);
|
||||
print_r($result);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling CustomersApi->apiCustomersGet: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*CustomersApi* | [**apiCustomersGet**](docs/Api/CustomersApi.md#apicustomersget) | **GET** /api/Customers | Αναζήτηση πελατών
|
||||
*CustomersApi* | [**apiCustomersIdGet**](docs/Api/CustomersApi.md#apicustomersidget) | **GET** /api/Customers/{id} | Προβολή πελάτη βάσει Id
|
||||
*CustomersApi* | [**apiCustomersPost**](docs/Api/CustomersApi.md#apicustomerspost) | **POST** /api/Customers | Εισαγωγή ή επεξεργασία πελάτη
|
||||
*EshopApi* | [**apiEshopOrderIdPost**](docs/Api/EshopApi.md#apieshoporderidpost) | **POST** /api/Eshop/{orderId} | Εισαγωγή / Τροποποίηση παραγγελίας
|
||||
*EshopApi* | [**apiEshopStatusGet**](docs/Api/EshopApi.md#apieshopstatusget) | **GET** /api/Eshop/Status | Κατάσταση παραγγελιών
|
||||
*MasterDataApi* | [**apiMasterDataCategoriesGet**](docs/Api/MasterDataApi.md#apimasterdatacategoriesget) | **GET** /api/MasterData/Categories | Κατηγορίες (Product.categId)
|
||||
*MasterDataApi* | [**apiMasterDataMainCategoriesGet**](docs/Api/MasterDataApi.md#apimasterdatamaincategoriesget) | **GET** /api/MasterData/MainCategories | Κύριες κατηγορίες (Product.mainCategId)
|
||||
*MasterDataApi* | [**apiMasterDataOikoiGet**](docs/Api/MasterDataApi.md#apimasterdataoikoiget) | **GET** /api/MasterData/Oikoi | Οίκοι (Product.oikosId)
|
||||
*MasterDataApi* | [**apiMasterDataOwnersGet**](docs/Api/MasterDataApi.md#apimasterdataownersget) | **GET** /api/MasterData/Owners | Εταιρία (Product.ownerId)
|
||||
*MasterDataApi* | [**apiMasterDataPersonalCategoriesGet**](docs/Api/MasterDataApi.md#apimasterdatapersonalcategoriesget) | **GET** /api/MasterData/PersonalCategories | Προσωπικές Κατηγορίες (Product.perCatId , Product.perCat2Id , Product.perCat3Id)
|
||||
*MasterDataApi* | [**apiMasterDataSubCategoriesGet**](docs/Api/MasterDataApi.md#apimasterdatasubcategoriesget) | **GET** /api/MasterData/SubCategories | Κατηγορίες (Product.subCategId)
|
||||
*MasterDataApi* | [**apiMasterDataVatCaterogiesGet**](docs/Api/MasterDataApi.md#apimasterdatavatcaterogiesget) | **GET** /api/MasterData/VatCaterogies | Κατηφορίες ΦΠΑ
|
||||
*ProductsApi* | [**apiProductsBarcodeGet**](docs/Api/ProductsApi.md#apiproductsbarcodeget) | **GET** /api/Products/{barcode} | Αναζήτηση βάσει barcode
|
||||
*ProductsApi* | [**apiProductsDataboxBarcodePost**](docs/Api/ProductsApi.md#apiproductsdataboxbarcodepost) | **POST** /api/Products/Databox/{Barcode} |
|
||||
*ProductsApi* | [**apiProductsGet**](docs/Api/ProductsApi.md#apiproductsget) | **GET** /api/Products | Αναζήτηση ειδών
|
||||
*WelcomeApi* | [**apiWelcomeGet**](docs/Api/WelcomeApi.md#apiwelcomeget) | **GET** /api/Welcome |
|
||||
*WelcomeApi* | [**apiWelcomeHead**](docs/Api/WelcomeApi.md#apiwelcomehead) | **HEAD** /api/Welcome |
|
||||
*WelcomeApi* | [**apiWelcomeSecureGet**](docs/Api/WelcomeApi.md#apiwelcomesecureget) | **GET** /api/Welcome/Secure |
|
||||
|
||||
## Models
|
||||
|
||||
- [Billing](docs/Model/Billing.md)
|
||||
- [CategoryDto](docs/Model/CategoryDto.md)
|
||||
- [CategoryDtoListPagedResponse](docs/Model/CategoryDtoListPagedResponse.md)
|
||||
- [Coupon](docs/Model/Coupon.md)
|
||||
- [Coupons](docs/Model/Coupons.md)
|
||||
- [Customer](docs/Model/Customer.md)
|
||||
- [CustomerDto](docs/Model/CustomerDto.md)
|
||||
- [CustomerPagedResponse](docs/Model/CustomerPagedResponse.md)
|
||||
- [EOrder](docs/Model/EOrder.md)
|
||||
- [EOrderPagedResponse](docs/Model/EOrderPagedResponse.md)
|
||||
- [EOrderStatus](docs/Model/EOrderStatus.md)
|
||||
- [EOrderStatusPagedResponse](docs/Model/EOrderStatusPagedResponse.md)
|
||||
- [Fee](docs/Model/Fee.md)
|
||||
- [Fees](docs/Model/Fees.md)
|
||||
- [Item](docs/Model/Item.md)
|
||||
- [Items](docs/Model/Items.md)
|
||||
- [MainCategoryDto](docs/Model/MainCategoryDto.md)
|
||||
- [MainCategoryDtoPagedResponse](docs/Model/MainCategoryDtoPagedResponse.md)
|
||||
- [OikosDto](docs/Model/OikosDto.md)
|
||||
- [OikosDtoPagedResponse](docs/Model/OikosDtoPagedResponse.md)
|
||||
- [OwnerDto](docs/Model/OwnerDto.md)
|
||||
- [OwnerDtoPagedResponse](docs/Model/OwnerDtoPagedResponse.md)
|
||||
- [PersonalCategoryDto](docs/Model/PersonalCategoryDto.md)
|
||||
- [PersonalCategoryDtoPagedResponse](docs/Model/PersonalCategoryDtoPagedResponse.md)
|
||||
- [ProblemDetails](docs/Model/ProblemDetails.md)
|
||||
- [ProductDto](docs/Model/ProductDto.md)
|
||||
- [ProductDtoPagedResponse](docs/Model/ProductDtoPagedResponse.md)
|
||||
- [Shipping](docs/Model/Shipping.md)
|
||||
- [SubCategoryDto](docs/Model/SubCategoryDto.md)
|
||||
- [SubCategoryDtoPagedResponse](docs/Model/SubCategoryDtoPagedResponse.md)
|
||||
- [VatCategoryDto](docs/Model/VatCategoryDto.md)
|
||||
- [VatCategoryDtoPagedResponse](docs/Model/VatCategoryDtoPagedResponse.md)
|
||||
|
||||
## Authorization
|
||||
|
||||
Authentication schemes defined for the API:
|
||||
### basic
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
## Tests
|
||||
|
||||
To run the tests, use:
|
||||
|
||||
```bash
|
||||
composer install
|
||||
vendor/bin/phpunit
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
development@europharmacy.gr
|
||||
|
||||
## About this package
|
||||
|
||||
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||
|
||||
- API version: `v1`
|
||||
- Generator version: `7.12.0`
|
||||
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
|
||||
Loading…
Reference in New Issue
Block a user