From 000b800eb02aea345d76af25b0c178fc438c41ad Mon Sep 17 00:00:00 2001 From: Valdoveste Date: Fri, 1 Dec 2023 01:41:52 -0300 Subject: [PATCH] Instead of using "Sistema" I add a 'Controller' for each model of the project. --- src/app/services/acordo.service.ts | 12 ++++++------ src/app/services/ambito.service.ts | 8 ++++---- src/app/services/andamento.service.ts | 10 +++++----- src/app/services/area-do-direito.service.ts | 8 ++++---- src/app/services/empresas.service.ts | 8 ++++---- src/app/services/fase.service.ts | 8 ++++---- src/app/services/foro-tribunal-orgao.service.ts | 8 ++++---- src/app/services/parte-contraria.service.ts | 12 ++++++------ src/app/services/patrono-anterior.service.ts | 4 ++-- src/app/services/patrono-responsavel.service.ts | 10 +++++----- .../services/processo-log-alteracoes.service.ts | 4 ++-- src/app/services/processo.service.ts | 12 ++++++------ src/app/services/search-processo.service.ts | 2 +- src/app/services/status.service.ts | 17 ++++++++++++++++- src/app/services/tipo-de-acao.service.ts | 8 ++++---- src/app/services/tipo-de-andamento.service.ts | 8 ++++---- src/app/services/vara.service.ts | 6 +++--- 17 files changed, 80 insertions(+), 65 deletions(-) diff --git a/src/app/services/acordo.service.ts b/src/app/services/acordo.service.ts index 66d4b8b..75662c7 100644 --- a/src/app/services/acordo.service.ts +++ b/src/app/services/acordo.service.ts @@ -14,30 +14,30 @@ import { ProcessoAcordo } from '../models/PROCESSO_ACORDO.model'; constructor(private http: HttpClient) { } getAllAcordo(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/acordo'); + return this.http.get(this.URL_API + '/api/Acordo/acordo'); } getProcessoAcordo(id_acordo: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/acordo/' + id_acordo) + return this.http.get(this.URL_API + '/api/Acordo/processo/acordo/' + id_acordo) } getAllProcessoAcordo(id_processo: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/all/acordo/' + id_processo); + return this.http.get(this.URL_API + '/api/Acordo/processo/all/acordo/' + id_processo); } createAcordo(createAcordoRequest: ProcessoAcordo, id_processo: String): Observable { delete createAcordoRequest.ID; createAcordoRequest.ID_PROCESSO = id_processo; createAcordoRequest.CRIADOR_ACORDO = "Usuario" - return this.http.post(this.URL_API + '/api/Sistema/add-acordo', createAcordoRequest); + return this.http.post(this.URL_API + '/api/Acordo/add-acordo', createAcordoRequest); } updateAcordo(id_acordo: string, updateAcordoRequest: ProcessoAcordo): Observable { updateAcordoRequest.ID = id_acordo; - return this.http.put(this.URL_API + '/api/Sistema/update-acordo/' + id_acordo, updateAcordoRequest); + return this.http.put(this.URL_API + '/api/Acordo/update-acordo/' + id_acordo, updateAcordoRequest); } deleteAcordo(id_acordo: string): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-acordo/' + id_acordo); + return this.http.delete(this.URL_API + '/api/Acordo/delete-acordo/' + id_acordo); } } diff --git a/src/app/services/ambito.service.ts b/src/app/services/ambito.service.ts index 3ef747f..af1907c 100644 --- a/src/app/services/ambito.service.ts +++ b/src/app/services/ambito.service.ts @@ -14,21 +14,21 @@ export class AmbitoService { constructor(private http: HttpClient) { } getAllAmbito(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/ambito') + return this.http.get(this.URL_API + '/api/Ambito/ambito') } createAmbito(createAmbitoRequest: ProcessoAmbito): Observable { delete createAmbitoRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-ambito', createAmbitoRequest); + return this.http.post(this.URL_API + '/api/Ambito/add-ambito', createAmbitoRequest); } updateAmbito(id: String, updateAmbitoRequest: ProcessoAmbito): Observable { updateAmbitoRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-ambito/' + id, updateAmbitoRequest) + return this.http.put(this.URL_API + '/api/Ambito/update-ambito/' + id, updateAmbitoRequest) } deleteAmbito(id: String): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-ambito/' + id) + return this.http.delete(this.URL_API + '/api/Ambito/delete-ambito/' + id) } } diff --git a/src/app/services/andamento.service.ts b/src/app/services/andamento.service.ts index 89d4b8a..aff075f 100644 --- a/src/app/services/andamento.service.ts +++ b/src/app/services/andamento.service.ts @@ -14,27 +14,27 @@ export class AndamentoService { constructor(private http: HttpClient) { } getAllAndamento(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/andamento'); + return this.http.get(this.URL_API + '/api/Andamento/andamento'); } getProcessoAndamento(id_andamento: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/andamento/' + id_andamento); + return this.http.get(this.URL_API + '/api/Andamento/processo/andamento/' + id_andamento); } getAllProcessoAndamento(id_processo: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/all/andamento/' + id_processo); + return this.http.get(this.URL_API + '/api/Andamento/processo/all/andamento/' + id_processo); } createAndamento(createAndamentoRequest: ProcessoAndamento, id_processo: String): Observable { delete createAndamentoRequest.ID; createAndamentoRequest.ID_PROCESSO = id_processo; createAndamentoRequest.CRIADOR_ANDAMENTO = "Usuario"; - return this.http.post(this.URL_API + '/api/Sistema/add-andamento', createAndamentoRequest); + return this.http.post(this.URL_API + '/api/Andamento/add-andamento', createAndamentoRequest); } updateAndamento(id_andamento: string, updateAndamentoRequest: ProcessoAndamento): Observable { updateAndamentoRequest.ID = id_andamento; - return this.http.put(this.URL_API + '/api/Sistema/update-andamento/' + id_andamento, updateAndamentoRequest); + return this.http.put(this.URL_API + '/api/Andamento/update-andamento/' + id_andamento, updateAndamentoRequest); } getFileProcessoAndamento(idProcesso: string | String) { diff --git a/src/app/services/area-do-direito.service.ts b/src/app/services/area-do-direito.service.ts index e5eeb71..f74c6c1 100644 --- a/src/app/services/area-do-direito.service.ts +++ b/src/app/services/area-do-direito.service.ts @@ -14,20 +14,20 @@ export class AreaDoDireitoService { constructor(private http: HttpClient) { } getAllAreaDoDireito(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/area-do-direito'); + return this.http.get(this.URL_API + '/api/AreaDoDireito/area-do-direito'); } createAreaDoDireito(createAreaDoDireitoRequest: ProcessoAreaDoDireito): Observable { delete createAreaDoDireitoRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-area-do-direito', createAreaDoDireitoRequest); + return this.http.post(this.URL_API + '/api/AreaDoDireito/add-area-do-direito', createAreaDoDireitoRequest); } updateAreaDoDireito(id: string, updateAreaDoDireitoRequest: ProcessoAreaDoDireito): Observable { updateAreaDoDireitoRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-area-do-direito/' + id, updateAreaDoDireitoRequest); + return this.http.put(this.URL_API + '/api/AreaDoDireito/update-area-do-direito/' + id, updateAreaDoDireitoRequest); } deleteAreaDoDireito(id: string): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-area-do-direito/' + id); + return this.http.delete(this.URL_API + '/api/AreaDoDireito/delete-area-do-direito/' + id); } } diff --git a/src/app/services/empresas.service.ts b/src/app/services/empresas.service.ts index 4355492..bf1210c 100644 --- a/src/app/services/empresas.service.ts +++ b/src/app/services/empresas.service.ts @@ -14,20 +14,20 @@ export class EmpresasService { constructor(private http: HttpClient) { } getAllEmpresas(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/empresas'); + return this.http.get(this.URL_API + '/api/Empresa/empresas'); } createEmpresas(createEmpresasRequest: ProcessoEmpresas): Observable { delete createEmpresasRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-empresas', createEmpresasRequest); + return this.http.post(this.URL_API + '/api/Empresa/add-empresas', createEmpresasRequest); } updateEmpresas(id: String, updateEmpresasRequest: ProcessoEmpresas): Observable { updateEmpresasRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-empresas/' + id, updateEmpresasRequest); + return this.http.put(this.URL_API + '/api/Empresa/update-empresas/' + id, updateEmpresasRequest); } deleteEmpresas(id: String): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-empresas/' + id); + return this.http.delete(this.URL_API + '/api/Empresa/delete-empresas/' + id); } } diff --git a/src/app/services/fase.service.ts b/src/app/services/fase.service.ts index 5805950..2484fae 100644 --- a/src/app/services/fase.service.ts +++ b/src/app/services/fase.service.ts @@ -14,20 +14,20 @@ export class FaseService { constructor(private http: HttpClient) { } getAllFase(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/fase'); + return this.http.get(this.URL_API + '/api/Fase/fase'); } // createFase(createFaseRequest: ProcessoFase): Observable { // delete createFaseRequest.ID; - // return this.http.post(this.URL_API + '/api/Sistema/add-fase', createFaseRequest); + // return this.http.post(this.URL_API + '/api/Fase/add-fase', createFaseRequest); // } // updateFase(id: string, updateFaseRequest: ProcessoFase): Observable { // updateFaseRequest.ID = id; - // return this.http.put(this.URL_API + '/api/Sistema/update-fase/' + id, updateFaseRequest); + // return this.http.put(this.URL_API + '/api/Fase/update-fase/' + id, updateFaseRequest); // } // deleteFase(id: string): Observable { - // return this.http.delete(this.URL_API + '/api/Sistema/delete-fase/' + id); + // return this.http.delete(this.URL_API + '/api/Fase/delete-fase/' + id); // } } diff --git a/src/app/services/foro-tribunal-orgao.service.ts b/src/app/services/foro-tribunal-orgao.service.ts index cf3cab7..06b3d16 100644 --- a/src/app/services/foro-tribunal-orgao.service.ts +++ b/src/app/services/foro-tribunal-orgao.service.ts @@ -14,20 +14,20 @@ export class ForoTribunalOrgaoService { constructor(private http: HttpClient) { } getAllForoTribunalOrgao(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/foro-tribunal-orgao') + return this.http.get(this.URL_API + '/api/ForoTribunalOrgao/foro-tribunal-orgao') } createForoTribunalOrgao(createForoTribunalOrgaoRequest: ProcessoForoTribunalOrgao): Observable { delete createForoTribunalOrgaoRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-foro-tribunal-orgao', createForoTribunalOrgaoRequest); + return this.http.post(this.URL_API + '/api/ForoTribunalOrgao/add-foro-tribunal-orgao', createForoTribunalOrgaoRequest); } updateForoTribunalOrgao(id: string, updateForoTribunalOrgaoRequest: ProcessoForoTribunalOrgao): Observable { updateForoTribunalOrgaoRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-foro-tribunal-orgao/' + id, updateForoTribunalOrgaoRequest); + return this.http.put(this.URL_API + '/api/ForoTribunalOrgao/update-foro-tribunal-orgao/' + id, updateForoTribunalOrgaoRequest); } deleteForoTribunalOrgao(id: string): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-foro-tribunal-orgao/' + id); + return this.http.delete(this.URL_API + '/api/ForoTribunalOrgao/delete-foro-tribunal-orgao/' + id); } } diff --git a/src/app/services/parte-contraria.service.ts b/src/app/services/parte-contraria.service.ts index eb4e38c..a2d6ac1 100644 --- a/src/app/services/parte-contraria.service.ts +++ b/src/app/services/parte-contraria.service.ts @@ -14,27 +14,27 @@ export class ParteContrariaService { constructor(private http: HttpClient) { } getAllParteContraria(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/parte-contraria') + return this.http.get(this.URL_API + '/api/ParteContraria/parte-contraria') } linkParteContraria(linkParteContrariaRequest: ProcessoParteContraria, NUMERO_PROCESSO: String): Observable { - return this.http.put(this.URL_API + '/api/Sistema/link-parte-contraria/' + NUMERO_PROCESSO, linkParteContrariaRequest) + return this.http.put(this.URL_API + '/api/ParteContraria/link-parte-contraria/' + NUMERO_PROCESSO, linkParteContrariaRequest) } getProcessoParteContraria(id_parte_contraria: string | String): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/parte-contraria/' + id_parte_contraria) + return this.http.get(this.URL_API + '/api/ParteContraria/processo/parte-contraria/' + id_parte_contraria) } createParteContraria(createParteContrariaRequest: ProcessoParteContraria): Observable { - return this.http.post(this.URL_API + '/api/Sistema/add-parte-contraria/', createParteContrariaRequest); + return this.http.post(this.URL_API + '/api/ParteContraria/add-parte-contraria/', createParteContrariaRequest); } updateParteContraria(id: String, updateParteContrariaRequest: ProcessoParteContraria): Observable { updateParteContrariaRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-parte-contraria/' + id, updateParteContrariaRequest); + return this.http.put(this.URL_API + '/api/ParteContraria/update-parte-contraria/' + id, updateParteContrariaRequest); } deleteParteContraria(id: String): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-parte-contraria/' + id) + return this.http.delete(this.URL_API + '/api/ParteContraria/delete-parte-contraria/' + id) } } diff --git a/src/app/services/patrono-anterior.service.ts b/src/app/services/patrono-anterior.service.ts index 4011788..7113603 100644 --- a/src/app/services/patrono-anterior.service.ts +++ b/src/app/services/patrono-anterior.service.ts @@ -13,10 +13,10 @@ export class PatronoAnteriorService { constructor(private http: HttpClient) { } addPatronoAnterior(createPatronoAnteriorRequest: ProcessoPatronosAnteriors): Observable { - return this.http.post(this.URL_API + '/api/Sistema/add-patrono-anterior', createPatronoAnteriorRequest); + return this.http.post(this.URL_API + '/api/PatronoAnterior/add-patrono-anterior', createPatronoAnteriorRequest); } getProcessoPatronoAnterior(idProcesso: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/all/patrono-anterior/' + idProcesso); + return this.http.get(this.URL_API + '/api/PatronoAnterior/processo/all/patrono-anterior/' + idProcesso); } } diff --git a/src/app/services/patrono-responsavel.service.ts b/src/app/services/patrono-responsavel.service.ts index 5309a43..5f0c051 100644 --- a/src/app/services/patrono-responsavel.service.ts +++ b/src/app/services/patrono-responsavel.service.ts @@ -14,24 +14,24 @@ export class PatronoResponsavelService { constructor(private http: HttpClient) { } getAllPatronoResponsavel(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/patrono-responsavel'); + return this.http.get(this.URL_API + '/api/PatronoResponsavel/patrono-responsavel'); } getPatronoResponsavel(id_patrono_responsavel: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/patrono-responsavel/' + id_patrono_responsavel); + return this.http.get(this.URL_API + '/api/PatronoResponsavel/patrono-responsavel/' + id_patrono_responsavel); } createPatronoResponsavel(createPatronoResponsavelRequest: ProcessoPatronoResponsavel): Observable { delete createPatronoResponsavelRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-patrono-responsavel', createPatronoResponsavelRequest); + return this.http.post(this.URL_API + '/api/PatronoResponsavel/add-patrono-responsavel', createPatronoResponsavelRequest); } updatePatronoResponsavel(id_patrono_responsavel: string, updatePatronoResponsavelRequest: ProcessoPatronoResponsavel): Observable { updatePatronoResponsavelRequest.ID = id_patrono_responsavel; - return this.http.put(this.URL_API + '/api/Sistema/update-patrono-responsavel/' + id_patrono_responsavel, updatePatronoResponsavelRequest); + return this.http.put(this.URL_API + '/api/PatronoResponsavel/update-patrono-responsavel/' + id_patrono_responsavel, updatePatronoResponsavelRequest); } deletePatronoResponsavel(id_patrono_responsavel: string): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-patrono-responsavel/' + id_patrono_responsavel); + return this.http.delete(this.URL_API + '/api/PatronoResponsavel/delete-patrono-responsavel/' + id_patrono_responsavel); } } diff --git a/src/app/services/processo-log-alteracoes.service.ts b/src/app/services/processo-log-alteracoes.service.ts index e4558e7..504eabb 100644 --- a/src/app/services/processo-log-alteracoes.service.ts +++ b/src/app/services/processo-log-alteracoes.service.ts @@ -15,10 +15,10 @@ export class ProcessoLogAlteracoesService { addLogProcesso(idProcesso: string, logProcessoRequest: ProcessoLogAlteracoes): Observable { logProcessoRequest.ID_PROCESSO = idProcesso; - return this.http.post(this.URL_API + '/api/Sistema/add-log-processo/' + idProcesso, logProcessoRequest); + return this.http.post(this.URL_API + '/api/Processo/add-log-processo/' + idProcesso, logProcessoRequest); } getLogProcesso(idProcesso: string): Observable { - return this.http.get(this.URL_API + '/api/Sistema/get-log-processo/' + idProcesso); + return this.http.get(this.URL_API + '/api/Processo/get-log-processo/' + idProcesso); } } diff --git a/src/app/services/processo.service.ts b/src/app/services/processo.service.ts index 0f20115..c47c5a2 100644 --- a/src/app/services/processo.service.ts +++ b/src/app/services/processo.service.ts @@ -17,7 +17,7 @@ export class ProcessoService { processoResponse$ = this._processo.asObservable(); getAllProcess() { - this.http.get(this.URL_API + '/api/Sistema/processo') + this.http.get(this.URL_API + '/api/Processo/processo') .subscribe({ next: (response) => { return this._processo.next(response) @@ -29,15 +29,15 @@ export class ProcessoService { } getProcess(id: String): Observable { - return this.http.get(this.URL_API + '/api/Sistema/processo/' + id) + return this.http.get(this.URL_API + '/api/Processo/processo/' + id) } createProcess(createProcessResquest: Processo): Observable { - return this.http.post(this.URL_API + '/api/Sistema/add-processo', createProcessResquest) + return this.http.post(this.URL_API + '/api/Processo/add-processo', createProcessResquest) } updateProcess(id_process: String, updateProcessRequest: Processo): Observable { - return this.http.put(this.URL_API + '/api/Sistema/update-processo/' + id_process, updateProcessRequest) + return this.http.put(this.URL_API + '/api/Processo/update-processo/' + id_process, updateProcessRequest) } updateProcessEncerramento(id_process: String, motivoEncerramento: string | String): Observable { @@ -46,7 +46,7 @@ export class ProcessoService { MOTIVO_ENCERRAMENTO: motivoEncerramento }; - return this.http.put(this.URL_API + '/api/Sistema/update-encerramento/processo/' + id_process, + return this.http.put(this.URL_API + '/api/Processo/update-encerramento/processo/' + id_process, requestEncerramentoBody, { headers: new HttpHeaders({ @@ -62,7 +62,7 @@ export class ProcessoService { MOTIVO_BAIXA_PROVISORIA: motivoBaixaProvisoria }; - return this.http.put(this.URL_API + '/api/Sistema/update-baixa-provisoria/processo/' + id_process, + return this.http.put(this.URL_API + '/api/Processo/update-baixa-provisoria/processo/' + id_process, requestBaixaProvisoriaBody, { headers: new HttpHeaders({ diff --git a/src/app/services/search-processo.service.ts b/src/app/services/search-processo.service.ts index 2c04eae..63cd237 100644 --- a/src/app/services/search-processo.service.ts +++ b/src/app/services/search-processo.service.ts @@ -17,7 +17,7 @@ export class SearchProcessoService { resultSearchResponse$ = this._resultSearch.asObservable(); searchProcesso(queryParams: any) { - this.http.get(this.URL_API + '/api/Sistema/painel-processos/busca-avancada', queryParams) + this.http.get(this.URL_API + '/api/BuscaAvancada/painel-processos/busca-avancada', queryParams) .subscribe({ next: (response: any) => { return this._resultSearch.next(response) diff --git a/src/app/services/status.service.ts b/src/app/services/status.service.ts index 7fb041f..afe44bd 100644 --- a/src/app/services/status.service.ts +++ b/src/app/services/status.service.ts @@ -14,6 +14,21 @@ export class StatusService { constructor(private http: HttpClient) { } getAllStatus(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/status') + return this.http.get(this.URL_API + '/api/Status/status') } + + // createStatus(createStatusRequest: ProcessoStatus): Observable { + // delete createStatusRequest.ID; + // return this.http.post(this.URL_API + '/api/Status/add-status', createStatusRequest); + // } + + // updateStatus(id: String, updateStatusRequest: ProcessoStatus): Observable { + // updateStatusRequest.ID = id; + // return this.http.put(this.URL_API + '/api/Status/update-status/' + id, updateStatusRequest) + + // } + + // deleteStatus(id: String): Observable { + // return this.http.delete(this.URL_API + '/api/Status/delete-status/' + id) + // } } diff --git a/src/app/services/tipo-de-acao.service.ts b/src/app/services/tipo-de-acao.service.ts index 761e875..92df036 100644 --- a/src/app/services/tipo-de-acao.service.ts +++ b/src/app/services/tipo-de-acao.service.ts @@ -14,20 +14,20 @@ export class TipoDeAcaoService { constructor(private http: HttpClient) { } getAllTipoDeAcao(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/tipo-de-acao'); + return this.http.get(this.URL_API + '/api/TipoDeAcao/tipo-de-acao'); } createTipoDeAcao(createTipoDeAcaoRequest: ProcessoTipoDeAcao): Observable { delete createTipoDeAcaoRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-tipo-de-acao', createTipoDeAcaoRequest); + return this.http.post(this.URL_API + '/api/TipoDeAcao/add-tipo-de-acao', createTipoDeAcaoRequest); } updateTipoDeAcao(id: string, updateTipoDeAcaoRequest: ProcessoTipoDeAcao): Observable { updateTipoDeAcaoRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-tipo-de-acao/' + id, updateTipoDeAcaoRequest); + return this.http.put(this.URL_API + '/api/TipoDeAcao/update-tipo-de-acao/' + id, updateTipoDeAcaoRequest); } deleteTipoDeAcao(id: string): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-tipo-de-acao/' + id); + return this.http.delete(this.URL_API + '/api/TipoDeAcao/delete-tipo-de-acao/' + id); } } diff --git a/src/app/services/tipo-de-andamento.service.ts b/src/app/services/tipo-de-andamento.service.ts index 8fda335..55becee 100644 --- a/src/app/services/tipo-de-andamento.service.ts +++ b/src/app/services/tipo-de-andamento.service.ts @@ -14,21 +14,21 @@ export class TipoDeAndamentoService { constructor(private http: HttpClient) { } getAllTipoDeAndamento(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/tipo-de-andamento') + return this.http.get(this.URL_API + '/api/TipoDeAndamento/tipo-de-andamento') } createTipoDeAndamento(createTipoDeAndamentoRequest: ProcessoTipoDeAndamento): Observable { delete createTipoDeAndamentoRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-tipo-de-andamento', createTipoDeAndamentoRequest); + return this.http.post(this.URL_API + '/api/TipoDeAndamento/add-tipo-de-andamento', createTipoDeAndamentoRequest); } updateTipoDeAndamento(id: String, updateTipoDeAndamentoRequest: ProcessoTipoDeAndamento): Observable { updateTipoDeAndamentoRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-tipo-de-andamento/' + id, updateTipoDeAndamentoRequest) + return this.http.put(this.URL_API + '/api/TipoDeAndamento/update-tipo-de-andamento/' + id, updateTipoDeAndamentoRequest) } deleteTipoDeAndamento(id: String): Observable { - return this.http.delete(this.URL_API + '/api/Sistema/delete-tipo-de-andamento/' + id) + return this.http.delete(this.URL_API + '/api/TipoDeAndamento/delete-tipo-de-andamento/' + id) } } diff --git a/src/app/services/vara.service.ts b/src/app/services/vara.service.ts index 519c15c..8f981c0 100644 --- a/src/app/services/vara.service.ts +++ b/src/app/services/vara.service.ts @@ -14,17 +14,17 @@ export class VaraService { constructor(private http: HttpClient) { } getAllVara(): Observable { - return this.http.get(this.URL_API + '/api/Sistema/vara') + return this.http.get(this.URL_API + '/api/Vara/vara') } createVara(createVaraRequest: ProcessoVara): Observable { delete createVaraRequest.ID; - return this.http.post(this.URL_API + '/api/Sistema/add-vara', createVaraRequest); + return this.http.post(this.URL_API + '/api/Vara/add-vara', createVaraRequest); } updateVara(id: String, updateVaraRequest: ProcessoVara): Observable { updateVaraRequest.ID = id; - return this.http.put(this.URL_API + '/api/Sistema/update-vara/' + id, updateVaraRequest) + return this.http.put(this.URL_API + '/api/Vara/update-vara/' + id, updateVaraRequest) }