mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-27 00:06:14 +01:00
Aggiunto sistema di revisione per API applicazione
This commit is contained in:
parent
81489c1e4e
commit
607c0a6683
38
src/API/App/v1/Revisione.php
Normal file
38
src/API/App/v1/Revisione.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/*
|
||||
* OpenSTAManager: il software gestionale open source per l'assistenza tecnica e la fatturazione
|
||||
* Copyright (C) DevCode s.r.l.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace API\App\v1;
|
||||
|
||||
use API\App\AppResource;
|
||||
use API\Interfaces\RetrieveInterface;
|
||||
use API\Resource;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Modules\Anagrafiche\Anagrafica;
|
||||
|
||||
class Revisione extends Resource implements RetrieveInterface
|
||||
{
|
||||
const REVISION = '1';
|
||||
|
||||
public function retrieve($request)
|
||||
{
|
||||
return [
|
||||
'revisione' => self::REVISION,
|
||||
];
|
||||
}
|
||||
}
|
@ -56,4 +56,8 @@ INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `e
|
||||
UPDATE `zz_segments` SET `clause` = '(orario_inizio BETWEEN \'|period_start|\' AND \'|period_end|\' OR orario_fine BETWEEN \'|period_start|\' AND \'|period_end|\')' WHERE `zz_segments`.`name` = 'Attività';
|
||||
|
||||
-- Aumentato limite per campo note in scheda anagrafica
|
||||
ALTER TABLE `an_anagrafiche` CHANGE `note` `note` TEXT NOT NULL;
|
||||
ALTER TABLE `an_anagrafiche` CHANGE `note` `note` TEXT NOT NULL;
|
||||
|
||||
-- Aggiunta risorsa APi per revisione applicazione
|
||||
INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `enabled`) VALUES
|
||||
(NULL, 'app-v1', 'retrieve', 'revisione', 'API\\App\\v1\\Revisione', '1')
|
||||
|
Loading…
Reference in New Issue
Block a user