Commit 85ea8f7793dc678ae69c41baf26913c7a3ecde0a

Authored by eduardo.batista
2 parents a4991e79 eb2672ac
Exists in master and in 1 other branch desenv

Merge branch 'master' of http://softwarepublico.gov.br/gitlab/mp/mod-wssei

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  
... ...