- Get and Start Kong and Co
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
- Create Kong API Route
| /* | |
| * Clona um documento, salva em uma pasta especifica e deleta o documento clonado | |
| * Retorna o código do documento clonado | |
| */ | |
| function moverDocumento(documentoId, versaoDocumento, pastaDestinoId) { | |
| var phisicalFile = docAPI.copyDocumentToUploadArea(documentoId, versaoDocumento)[0]; | |
| var docDto = docAPI.newDocumentDto(); | |
| docDto.setDocumentId(0); | |
| docDto.setDocumentTypeId(""); |
| /* | |
| * @function mostraLoading Show loading and execute any function. | |
| * @param {Object} loading referência a variavel de loading que será utilizada | |
| * @param {Function} anyFunction function to execute while loading shows. | |
| */ | |
| function mostraLoading(loading, anyFunction, ...anyParam) { | |
| loading.show(); | |
| setTimeout(function () { | |
| anyFunction(...anyParam); | |
| loading.hide(); |
| SELECT 'ML0010' + CONVERT(VARCHAR(10), l.COD_LISTA_PAI) AS 'TABELA_PRINCIPAL', | |
| 'ML0010' + CONVERT(VARCHAR(10), l.COD_LISTA_FILHO) AS 'TABELA_PAIxFILHO', | |
| d.COD_LISTA, | |
| l.COD_LISTA_PAI, | |
| l.COD_LISTA_FILHO, | |
| l.COD_TABELA , | |
| d.NUM_DOCTO_PROPRIED , | |
| d.NUM_VERS_PROPRIED | |
| FROM DEF_PROCES p | |
| LEFT JOIN VERS_DEF_PROCES vp ON vp.COD_DEF_PROCES = p.COD_DEF_PROCES |
| function gerarArquivo(conteudo, pastaDestinoId, nomeDocumento) { | |
| var docDto = docAPI.newDocumentDto(); | |
| docDto.setDocumentId(0); | |
| docDto.setDocumentTypeId(""); | |
| docDto.setDocumentDescription(nomeDocumento); | |
| docDto.setParentDocumentId(parseInt(pastaDestinoId)); | |
| var attachArray = new java.util.ArrayList(); | |
| var mainAttach = docAPI.newAttachment(); |
| function inicializaCamposZoom() { | |
| if (typeof window['filial'].setValue != 'function') { | |
| setTimeout(inicializaCamposZoom, 500); | |
| } else { | |
| // Seu código aqui... | |
| // disableZoom('filial') | |
| // prepareReload('motivo', 'tipoRequisicao', '4') | |
| } | |
| } |
| const ds = DatasetFactory.getDataset('workflowProcess', null, null, null); | |
| const outObject = ds.values.reduce(function(a, e) { | |
| let estKey = (e['processId']); | |
| (a[estKey] ? a[estKey] : (a[estKey] = null || [])).push(e); | |
| return a; | |
| }, {}); | |
| console.log(outObject); |
git clone [email protected]:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
| FROM php:7.4-fpm | |
| # Arguments defined in docker-compose.yml | |
| ARG user | |
| ARG uid | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ |
| #!/bin/bash | |
| # Adicione um novo remote; pode chamá-lo de "upstream": | |
| git remote add upstream https://github.com/usuario/projeto.git | |
| # Obtenha todos os branches deste novo remote, | |
| # como o upstream/master por exemplo: | |
| git fetch upstream |