Árvore de páginas

Versões comparadas

Chave

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

...

return the path address of requisition

Sintaxe

...

getPathRequest()
Retorno
NomeTipoDescrição
cPathRequeststringThe path address of requisition
Exemplos

...

#include "tlpp-core

...

.th"
#include "tlpp-rest.th"

...



// http:localhost:9090/api/mypath/teste

...


@Get("mypath/teste")

...


Function u_getPathExample()

...


 

...

 

...

Local 

...

creturn := ""

...


 

...

 

...

creturn := oRest:getPathRequest()

...


	conout(cReturn)  

...

// Vai exibir a URN da requisição, por exemplo http:localhost:9090/api/mypath/teste

...


	creturn := "{'Path':" + 

...

creturn + "}"

...


 

...

 

...

oRest:SetResponse(cReturn)

...


Return
Abrangência

01/2020