euromedica-client/docs/Api/ProductsApi.md

6.9 KiB
Raw Blame History

Europharmacy\EuromedicaClient\ProductsApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
apiProductsBarcodeGet() GET /api/Products/{barcode} Αναζήτηση βάσει barcode
apiProductsDataboxBarcodePost() POST /api/Products/Databox/{Barcode}
apiProductsGet() GET /api/Products Αναζήτηση ειδών

apiProductsBarcodeGet()

apiProductsBarcodeGet($barcode): \Europharmacy\EuromedicaClient\Model\ProductDto

Αναζήτηση βάσει barcode

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\ProductsApi(
    // 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
);
$barcode = 'barcode_example'; // string | 

try {
    $result = $apiInstance->apiProductsBarcodeGet($barcode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->apiProductsBarcodeGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
barcode string

Return type

\Europharmacy\EuromedicaClient\Model\ProductDto

Authorization

basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiProductsDataboxBarcodePost()

apiProductsDataboxBarcodePost($barcode): \Europharmacy\EuromedicaClient\Model\ProductDto

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\ProductsApi(
    // 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
);
$barcode = 'barcode_example'; // string

try {
    $result = $apiInstance->apiProductsDataboxBarcodePost($barcode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->apiProductsDataboxBarcodePost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
barcode string

Return type

\Europharmacy\EuromedicaClient\Model\ProductDto

Authorization

basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiProductsGet()

apiProductsGet($search_text, $search_meds, $search_user_items, $visibly_web, $modified_after, $page, $size): \Europharmacy\EuromedicaClient\Model\ProductDtoPagedResponse

Αναζήτηση ειδών

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\ProductsApi(
    // 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_text = 'search_text_example'; // string | Αναζήτηση είδους βάσει ονομασίας/barcode , μπορεί να είναι και κενό
$search_meds = true; // bool | Αναζήτηση φαρμάκων
$search_user_items = true; // bool | Αναζήτηση παραφαρμάκων
$visibly_web = True; // bool | Αν έχει τιμή θα επιστρέφει όσα πληρούν τη συνθήκη (Αυτόματα εξαιρεί τα φάρμακα)
$modified_after = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Αν έχει τιμή θα επιστρέφει όσα έχουν τροποποιηθεί μετά την επιλεγμένη ημερομηνία π.χ. (2024-3-12 12:01)
$page = 1; // int | 
$size = 1000; // int | 

try {
    $result = $apiInstance->apiProductsGet($search_text, $search_meds, $search_user_items, $visibly_web, $modified_after, $page, $size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->apiProductsGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
search_text string Αναζήτηση είδους βάσει ονομασίας/barcode , μπορεί να είναι και κενό [optional]
search_meds bool Αναζήτηση φαρμάκων [optional] [default to true]
search_user_items bool Αναζήτηση παραφαρμάκων [optional] [default to true]
visibly_web bool Αν έχει τιμή θα επιστρέφει όσα πληρούν τη συνθήκη (Αυτόματα εξαιρεί τα φάρμακα) [optional]
modified_after \DateTime Αν έχει τιμή θα επιστρέφει όσα έχουν τροποποιηθεί μετά την επιλεγμένη ημερομηνία π.χ. (2024-3-12 12:01) [optional]
page int [optional] [default to 1]
size int [optional] [default to 1000]

Return type

\Europharmacy\EuromedicaClient\Model\ProductDtoPagedResponse

Authorization

basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]