Commit d2cc1425bad01d04e438ff6f0955694823a3498a
1 parent
980536e1
Exists in
master
and in
1 other branch
[Feat] voltando serviço de assinatura de documentos do bloco
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
controlador_ws.php
... | ... | @@ -285,6 +285,18 @@ $app->group('/api/v1',function(){ |
285 | 285 | $dto->setDblIdDocumento($request->getAttribute('route')->getArgument('documento')); |
286 | 286 | return $response->withJSON($rn->listarAssinaturasDocumento($dto)); |
287 | 287 | }); |
288 | + $this->post('/assinar/bloco', function($request, $response, $args){ | |
289 | + /** @var $request Slim\Http\Request */ | |
290 | + $rn = new MdWsSeiDocumentoRN(); | |
291 | + return $response->withJSON($rn->apiAssinarDocumentos( | |
292 | + $request->getParam('arrDocumento'), | |
293 | + $request->getParam('orgao'), | |
294 | + MdWsSeiRest::dataToIso88591($request->getParam('cargo')), | |
295 | + $request->getParam('login'), | |
296 | + $request->getParam('senha'), | |
297 | + $request->getParam('usuario') | |
298 | + )); | |
299 | + }); | |
288 | 300 | $this->post('/ciencia', function($request, $response, $args){ |
289 | 301 | /** @var $request Slim\Http\Request */ |
290 | 302 | $rn = new MdWsSeiDocumentoRN(); | ... | ... |