Commit eb2672ac37dfaf3c1cabe6f3d3eb566da4191f36
1 parent
77b80c91
Exists in
master
and in
1 other branch
Incluindo WS para Atribuir processo
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
controlador_ws.php
| ... | ... | @@ -399,6 +399,19 @@ $app->group('/api/v1',function(){ |
| 399 | 399 | $dto = $rn->encapsulaRetornoProgramado($request->getParams()); |
| 400 | 400 | return $response->withJSON($rn->agendarRetornoProgramado($dto)); |
| 401 | 401 | }); |
| 402 | + $this->post('/atribuir', function($request, $response, $args){ | |
| 403 | + /** @var $request Slim\Http\Request */ | |
| 404 | + $api = new EntradaAtribuirProcessoAPI(); | |
| 405 | + | |
| 406 | + if($request->getParam('numeroProcesso')) { | |
| 407 | + $api->setProtocoloProcedimento($request->getParam('numeroProcesso')); | |
| 408 | + } | |
| 409 | + if($request->getParam('usuario')) { | |
| 410 | + $api->setIdUsuario($request->getParam('usuario')); | |
| 411 | + } | |
| 412 | + $rn = new MdWsSeiProcedimentoRN(); | |
| 413 | + return $response->withJSON($rn->atribuirProcesso($api)); | |
| 414 | + }); | |
| 402 | 415 | |
| 403 | 416 | })->add( new TokenValidationMiddleware()); |
| 404 | 417 | ... | ... |