Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

HTML
<style type="text/css">
.expand-container{
margin-top:5px !important;
font-weight: normal !important;
}

.expand-control{
margin-bottom: 5px !important;
}

pre{
white-space: inherit !important;
}

table tr:nth-child(odd), table tr:nth-child(odd) > *{
   background: transparent !important;
border: 0 !important;
}

.pdl .codeContent .gutter{
    border-right: 1px solid #ccc !important;
}

.wiki-content .innerCell {
    overflow-y: hidden;
}

.HiddenDiv .confluence-information-macro {
    width: calc(100% - 25px);
    background: #fff !important; 
    border: 0 !important;
    -moz-border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    border-radius: 0px !important;
    color: #333;
    margin: 10px 0 1em 0;
    min-height: 20px;
    padding: 10px;
    position: relative;
}

.HiddenDiv .confluence-information-macro .confluence-information-macro pre{
    display: none;
}
.HiddenDiv .wiki-content a:link, .HiddenDiv .wiki-content a, .HiddenDiv .tab-nav-link, .HiddenDiv .current{
     color: #000 !important; 
}

.wiki-content a:link {
    color: #000 !important;
}


.lastDiv + pre{
    font-family: inherit;
}

</style>

Exemplo de utilização

...

HTML
<div style="border:1px solid #aab8c6;padding:5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;background: #f7f7f7">      
      <div style="background:#f7f7f7;width:calc(100% - 10px);height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 1px solid #aab8c6;margin-bottom:14px">
           <span style="float:left"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329/folder3.png?version=2&modificationDate=1509366835661&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px">{{ProjectName}}<>Restful</span>
           <span style="float:left;padding:0px 5px">&raquo</span>
           <span style="float:left"><img  style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329/transfer3.png?version=2&modificationDate=1509366835358&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px">{{Domain}}<>localhost:8051</span>
           <span style="float:left;padding:0px 5px">&raquo</span>
           <span style="float:left"><img  style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/190516500/copy.png?version=1&modificationDate=1509567801070&api=v2"/></span>
           <span style="float:left;font-size:inherit;padding-left:5px">1$_$1$_$06</span>
     </div>
<div      <span style="borderfloat:left;padding:0px 1px solid #aab8c65px">&raquo</span>
      
     <span  <divstyle="float:left"><img  style="backgroundwidth:#f7f7f7;width:calc(100% - 10px);height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;"> 16px; height: 16px; margin-top:3px" src="/download/attachments/190516500/programming-code-signs.png?version=1&modificationDate=1509568429032&api=v2"/></span>
           <span style="float:left;marginfont-top: 4px"><imgsize:inherit;padding-left:5px">GET</span>
     </div>
<div style="widthborder: 16px;1px height: 16px; margin-top:3px" src="/download/attachments/309398329/cogwheel-arrow.png?version=1&modificationDate=1509556752957&api=v2" /></span>
solid #aab8c6">      
       <span<div style="floatbackground:left#f7f7f7;font-size:inherit;padding-left:5px;margin-top: 3px">Fórmula Visual: Configuração de Atividades</span>
      </div>
<div style="background:#f0f0f0;width:calc(width:calc(100% - 10px);height:auto;min-height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <div><span<span style="float:left;margin-top: 4px;font-weight:normal !important"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329190516500/workflowinfo.png?version=1&modificationDate=15095562547241509568958717&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 4px;font-weight:normal !important">Fórmula Visual <b>"teste_formula"</b></span><span style="float:right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv22', 'img22');"><img id="img22" name="img22"3px">Informações Gerais</span>
      </div>
<div style="background:#f0f0f0;width:calc(100% - 10px);height:auto;min-height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <div><span style="float:left;margin-top: 4px;font-weight:normal !important"><img style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/add190516500/programming-code-signs.png?version=1&modificationDate=15093827568081509568429032&api=v2" /></span></div>
span>
           </div>
<div<span style="backgroundfloat: #e2e2e2;">
<div id="hiddenDiv22" class="HiddenDiv"left;font-size:inherit;padding-left:5px;margin-top: 4px;font-weight:normal !important">Get <b>(Method)</b></span><span style="visibilityfloat:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;">
No grid principal da Fórmula Visual, existe um parâmetro <strong>"Definição dos Parâmetros de Execução"</strong>, clique em <strong>[...]</strong>, para definir os parâmetros que serão utilizados na Fórmula Visual .right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv22', 'img22');"><img id="img22" name="img22" style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2"></span></div>
      </div>
<div style="background: #fff#e2e2e2; padding:10px;text-align:center;width:calc(100% - 25px);">

Image Removed

HTML
</div>

Definindo os parâmetros da Fórmula Visual: 

HTML
<div style="background: #fff; padding:10px;text-align:center;width:calc(100% - 25px);">

Image Removed

">
<div id="hiddenDiv22" class="HiddenDiv" style="visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;">
<strong>URL</strong>: <a href="http://localhost:8051/rmsrestdataserver/rest/EstLOCData/1$_$1$_$06" target="_blank">http://localhost:8051/rmsrestdataserver/rest/EstLOCData/1$_$1$_$06</a>
HTML
</div>
</div>
</div>
<div 
HTML
</div>
</div>
</div>
</div>
<div style="padding:7px"></div>
<div style="border: 1px solid #aab8c6">      
       <div style="background:#f7f7f7;width:calc(100% - 10px);height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <span style="float:left;margin-top: 4px"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329190516500/xml-filejson.png?version=1&modificationDate=15093715967711509569485552&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 3px">Modelo XML<JSON</span>
      </div>
      <div style="background:#f0f0f0;width:calc(100% - 10px);height:auto;min-height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <div><span style="float:left;margin-top: 4px;font-weight:normal !important"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329/programming-code.png?version=1&modificationDate=1509451197195&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 4px;font-weight:normal !important">GetParams>Get <b>(Requisição e Resposta)</b></span><span style="float:right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv16', 'img16');"><img id="img16" name="img16" style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2"></span></div>
      </div>
<div style="background: #e2e2e2;">
<div id="hiddenDiv16" class="HiddenDiv" style="visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;">
<strong>Descrição:</strong> Retorna Recuperao registro osdo Parâmetrosdataserver derepresentado umapelo Fórmula Visual.identificador da URL {id}.
.
Informações
iconfalse
Deck of Cards
id
xmlRequest<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body>
   "CEP": null,
      "CIDADE": null,
      "COMPLEMENTO": null,
      
<GetParametersResponse xmlns="http://www.totvs.com/">
"CONTATO": null,
      
<GetParametersResult>
"DDD": null,
      "EMAIL": null,
  
<Parameters>
  
<xs:schema
 
id="Parameters"
 
xmlns=
"CODETD"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
: null,
     
<xs:element
 
name=
"
Parameters
FAX"
msdata
:
IsDataSet="true" msdata:UseCurrentLocale="true">
 null,
      
<xs:complexType>
"NUMERO": null,
      
<xs:choice minOccurs="0" maxOccurs="unbounded">
"PAIS": null,
      
<xs:element name="GCOLIGADA">
"RUA": null,
      
<xs:complexType>
"TELEFONE": null,
      "INATIVO": 0
   
<xs:sequence>
}
}
Card
labelRequest
Bloco de código
language
js
firstline1
title
Response
linenumberstrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tot="http://www.totvs.com/">
{
   "messages": [],
   
<soapenv:Header/>
"length": 1,
   
<soapenv:Body>
"data":    {
      
<tot:GetParameters>
"id": "1$_$1$_$06",
      "CODCOLIGADA": 1,
  
<!--Optional:-->
    "CODFILIAL": 1,
      
<tot:codColigada>?</tot:codColigada>
"CODLOC": "06",
      "NOME": "RM Suprimentos MTZ 
<!
-
-Optional:-->
 Semi-Acabados",
      "NIVELESTOQUE": 1,
  
<tot:idFormula>?</tot:idFormula>
    "IDUNDNEGOCIO": null,
      
</tot:GetParameters>
"BAIRRO": null,
   
</soapenv:Body> </soapenv:Envelope> 
Card
labelResponse
Bloco de código
languagexml
titleResponse
HTML
</div>
</div>
</div>
<div style="padding:7px"></div>
<div style="border: 1px solid #aab8c6">      
       
<xs:element name="CODCOLIGADA" msdata:Caption="Coligada" type="xs:int" minOccurs="0" />
<div style="background:#f7f7f7;width:calc(100% - 10px);height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <span style="float:left;margin-top: 
</xs:sequence> </xs:complexType>
4px"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/190516500/binary-code.png?version=1&modificationDate=1509570539048&api=v2" /></span>
          
</xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> </Parameters> </GetParametersResult>
 <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 3px">Exemplos</span>
      </div>
      
</GetParametersResponse> </s:Body> </s:Envelope>
HTML
</div>
</div>
</div>
<div style="padding:7px"></div>
<div style="border: 1px solid #aab8c6"><div style="background:#f0f0f0;width:calc(100% - 10px);height:auto;min-height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
      
       <div style="backgroundwidth:#f7f7f7100%;widthheight:calc(100% - 10px);height:30px;colorborder-bottom: #000;font-weight:bold;font-size: 16px;padding:5px;border1px solid #d0d0d0;padding-bottom: 0px5px;">
           <span ><span style="float:left;margin-top: 4px;font-weight:normal !important"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329/preference190516500/new-page-view.png?version=1&modificationDate=15093699653681509570210360&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 3px">Parâmetros</span>
      </div>
      <div style="background:#f0f0f0;width:calc(100% - 10px);height:auto;min-height:30px;color: #000;font-weight:bold;font-size: 16px;padding:5px;border-bottom: 0px;">
           <div style="width:100%;height: 30px;border-bottom:1px solid #d0d0d0;padding-bottom:5px;"><span style="float:left;margin-top: 4px;font-weight:normal !important"><img4px;font-weight:normal !important">SOAP UI <b>(5.3.0)</b></span><span style="float:right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv17', 'img17');"><img id="img17" name="img17" style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/cubeadd.png?version=1&modificationDate=15093705909361509382756808&api=v2" ></><span></span>div>
<div style="background: #e2e2e2;">
<div         <span id="hiddenDiv17" style="float:left;font-size:inherit;visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px;margin-top background: 4px#e2e2e2;font-weight:normal !important">CodColigada <b>(Opcional)</b></span><span">
Criar um novo projeto <strong>REST</strong> no <strong>SOAP UI</strong>:
<div style="floatbackground:right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv17', 'img17');"><img id="img17" name="img17" style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2"></span></div> #fff; padding:10px;text-align:center;width:calc(100% - 25px);margin:10px 0px;">

Image Added

HTML
</div>
Após a criação do projeto, o método GET irá ser apresentado, como a imagem abaixo:
<div style="background: #e2e2e2#fff;">
<div  padding:10px;text-align:center;width:calc(100% - 25px);margin:10px 0px;">

Image Added

HTML
</div>
Não se esqueça que a <strong>Autenticação</strong> Basic deverá ser preenchida.
<div style="background: #fff; padding:10px;text-align:center;width:calc(100% - 25px);margin:10px 0px;">

Image Added

HTML
</div>
Ao realizar a requisição o resultado é apresentado como a imagem abaixo:
<div style="background: #fff; padding:10px;text-align:center;width:calc(100% - 25px);margin-top:10px;">

Image Added

HTML
</div>
</div>
</div>
<div style="width:100%;height: 30px;padding-top:5px"><span style="float:leftid="hiddenDiv17" style="visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;font-weight:normal">
<strong>Descrição:</strong> Código da Coligada em que a Fórmula Visual foi criada.<br>
<strong>Tipo</strong>: Inteiro
</div>
</div>
<div style="width:100%;height: 30px;padding-top:5px"><span style="float:left;margin-top: 4px;font-weight:normal !important"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/309398329/cube.png?version=1&modificationDate=1509370590936&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 4px;font-weight:normal !important">IdFormula <b>(Opcional)</b></span><span style="float:right;margin-top: 4px;paddingfont-right:5px;cursor:pointer" onclick="Show('hiddenDiv18', 'img18');"><img id="img18" name="img18" weight:normal !important"><img style="width: 16px; height: 16px; margin-top:3px" src="/download/attachments/190516500/new-page-view.png?version=1&modificationDate=1509570210360&api=v2" /></span>
           <span style="float:left;font-size:inherit;padding-left:5px;margin-top: 4px;font-weight:normal !important">POC <b>(1.0.0 - Owner)</b></span><span style="float:right;margin-top: 4px;padding-right:5px;cursor:pointer" onclick="Show('hiddenDiv18', 'img18');"><img id="img18" name="img18" style="width: 16px; height: 16px; margin-top: 3px" src="/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2"></span></div>
<div style="background: #e2e2e2;">
<div id="hiddenDiv18" style="visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;font-weight:normal">
Foi criado uma aplicação à parte do <strong>RM</strong> que faz a requisição ao serviço de <strong>Rest</strong> através do método <strong>GET</strong>, e a resposta obtida foi a mesma que a apresentada pelo <strong>SOAP UI</strong>.
<div class="lastDiv" style="background: #fff; padding:10px;text-align:center;width:calc(100% - 25px);margin-top:10px;">

Image Added

HTML
</div>
O Download da POC pode ser realizado aqui.
HTML
 3px" src="/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2"></span></div>
<div style="background: #e2e2e2;">
<div id="hiddenDiv18" style="visibility:hidden;height: 0px; line-height: 30px; padding-left: 5px; background: #e2e2e2;font-weight:normal">
<strong>Descrição:</strong> Código Identificador da Fórmula Visual.<br>
<strong>Tipo</strong>: Cadeia de Caracteres (String)
</div>
</div>
      </div>
</div>
</div>

Método: GET

URL: http://localhost:8051/rmsrestdataserver/rest/EstLOCData/1$_$1$_$06

Resposta da requisição

Expandir
Image Removed
HTML
<script type="text/javascript" language="javascript">

Show = function(divName, imgName){
window["currentElement"] = divName;
if(typeof divName === "string"){
	if(document.getElementById(divName).offsetHeight < 2){
     $("#" + divName).animate({height: $("#" + divName).get(0).scrollHeight + 7});
     $("#" + divName).css("visibility", "visible")
     $("#" + imgName).attr('src', '/download/attachments/309398329/remove.png?version=1&modificationDate=1509386912062&api=v2');  
     $(".HiddenDiv .tab-nav-link").on("click", function(){
          window["currentElement"] = $(this).parents().find(".HiddenDiv").attr("id");
     });  
	 $(".HiddenDiv .confluence-information-macro").mutate('height',function (element,info){
          this.selector.each(function(index, element){
             if($(this).parent().attr("id") == window["currentElement"])
             $(this).parent().height($(this).outerHeight() + 61);
          });		
     });
    }
    else{
     $("#" + divName).animate({height: "0px"});
     $("#" + divName).css("visibility", "hidden")
     $("#" + imgName).attr('src', '/download/attachments/309398329/add.png?version=1&modificationDate=1509382756808&api=v2');
    }
}
}
</script>

...