Reorganize files

parent be7a05d8
swagger-generated-php-client.zip
swagger.json
swagger.yaml
......
Βιβλιοθήκη και πρόγραμμα κατανάλωσης
====================================
# Οδηγίες
Αντιγράψτε το αρχείο `settings.php.dist` σε ένα νέο αρχείο `settings.php` και
......
<?php
$autoloader = require_once(__DIR__ . '/../vendor/autoload.php');
$autoloader = require(__DIR__ . '/swagger-generated-php-client/SwaggerClient-php/vendor/autoload.php');
$autoloader->addPsr4('Gr\\Gov\\Minedu\\Osteam\\', __DIR__ . '/src/');
$autoloader->addPsr4('Swagger\\Client\\', __DIR__ . '/../lib/');
$autoloader->addPsr4('Swagger\\Client\\', __DIR__ . '/swagger-generated-php-client/SwaggerClient-php/lib/');
use Gr\Gov\Minedu\Osteam\App;
use Swagger\Client\Model\DocumentDto;
......@@ -11,7 +11,7 @@ use Swagger\Client\Model\Document;
$settings = require(__DIR__ . '/settings.php');
$app = new App($settings);
$app->setDebug(true);
/**
* Λήψη παραμέτρων καθορισμού λειτουργίας από τη γραμμή εντολών
......
......@@ -4,5 +4,5 @@ return [
'username' => 'test',
'password' => '123456',
// sender id for test lookups
'senderId' => '100000001'
'sender_id' => 100000001
];
......@@ -136,8 +136,6 @@ class App
*/
public function apiResultObjAsArray($resultobj)
{
$class = get_class($resultobj);
$result = [];
if (method_exists($resultobj, 'getters')) {
$getters = $resultobj->getters();
......
......@@ -442,6 +442,7 @@ class DefaultApi
'string[]',
'/search/documents'
);
var_export($response);
// return [$this->apiClient->getSerializer()->deserialize($response, '\Swagger\Client\Model\ProtocolNumber[]', $httpHeader), $statusCode, $httpHeader];
return [$this->apiClient->getSerializer()->deserialize($response, 'string[]', $httpHeader), $statusCode, $httpHeader];
} catch (ApiException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment