This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Externo\Almoxarifado\ConectaSus;
|
||||
|
||||
use App\Http\Controllers\Externo\Almoxarifado\Controller;
|
||||
use App\Services\WebService\Almoxarifado\ConectaSus\CentroCustoService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class CentroCustoController extends Controller
|
||||
{
|
||||
protected $controller = __CLASS__;
|
||||
|
||||
public function index(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(CentroCustoService::index($request), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(CentroCustoService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Externo\Almoxarifado\ConectaSus;
|
||||
|
||||
use App\Http\Controllers\Externo\Almoxarifado\Controller;
|
||||
use App\Services\WebService\Almoxarifado\ConectaSus\FabricanteService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class FabricanteController extends Controller
|
||||
{
|
||||
protected $controller = __CLASS__;
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FabricanteService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FabricanteService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Externo\Almoxarifado\ConectaSus;
|
||||
|
||||
use App\Http\Controllers\Externo\Almoxarifado\Controller;
|
||||
use App\Services\WebService\Almoxarifado\ConectaSus\FornecedorService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class FornecedorController extends Controller
|
||||
{
|
||||
protected $controller = __CLASS__;
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FornecedorService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(FornecedorService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Externo\Almoxarifado\ConectaSus;
|
||||
|
||||
use App\Http\Controllers\Externo\Almoxarifado\Controller;
|
||||
use App\Services\WebService\Almoxarifado\ConectaSus\MaterialService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class MaterialController extends Controller
|
||||
{
|
||||
protected $controller = __CLASS__;
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(MaterialService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(MaterialService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user