6.1 KiB
6.1 KiB
Europharmacy\EuromedicaClient\CustomersApi
All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| apiCustomersGet() | GET /api/Customers | Αναζήτηση πελατών |
| apiCustomersIdGet() | GET /api/Customers/{id} | Προβολή πελάτη βάσει Id |
| apiCustomersPost() | POST /api/Customers | Εισαγωγή ή επεξεργασία πελάτη |
apiCustomersGet()
apiCustomersGet($search_by_name, $search_by_phone, $search_by_amka, $search_by_afm, $page, $size): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Αναζήτηση πελατών
Example
<?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;
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| search_by_name | string | [optional] [default to ''] | |
| search_by_phone | string | [optional] [default to ''] | |
| search_by_amka | string | [optional] [default to ''] | |
| search_by_afm | string | [optional] [default to ''] | |
| page | int | [optional] [default to 1] | |
| size | int | [optional] [default to 1000] |
Return type
\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiCustomersIdGet()
apiCustomersIdGet($id): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Προβολή πελάτη βάσει Id
Example
<?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
);
$id = 56; // int |
try {
$result = $apiInstance->apiCustomersIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->apiCustomersIdGet: ', $e->getMessage(), PHP_EOL;
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int |
Return type
\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiCustomersPost()
apiCustomersPost($customer_dto): \Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Εισαγωγή ή επεξεργασία πελάτη
Example
<?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
);
$customer_dto = new \Europharmacy\EuromedicaClient\Model\CustomerDto(); // \Europharmacy\EuromedicaClient\Model\CustomerDto |
try {
$result = $apiInstance->apiCustomersPost($customer_dto);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->apiCustomersPost: ', $e->getMessage(), PHP_EOL;
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| customer_dto | \Europharmacy\EuromedicaClient\Model\CustomerDto | [optional] |
Return type
\Europharmacy\EuromedicaClient\Model\CustomerPagedResponse
Authorization
HTTP request headers
- Content-Type:
application/json-patch+json,application/json,application/*+json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]