Árvore de páginas

Versões comparadas

Chave

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

...

Bloco de código
languagejava
themeMidnight
titleTM15TPDOCTMSAC15CHV
#Include 'Protheus.ch'

User Function TMAC15ChV
Local aRet      := {}
Local cMethod   := ParamIXB[1]
Local cEndPoint := ParamIXB[2]
Local cVers     := ParamIXB[3]
Local cBody     := ParamIXB[4]
Local cPath     := ParamIXB[5]

cVers := "3.0"


	If cMethod == "3" //1=Post, 2=Put, 3=Patch, 4=Get
		If cEndPoint == "/Shipping/lockUnlock" //Exs. /driver /driver/lockUnlock /ShippingPayment/DocumentDelivered
			AADD( aRet, cVers ) //
			AADD( aRet, cBody) // {novo json}
			AADD( aRet, cPath) // /654654645645 outro id de viagem
		EndIf
	EndIf

Return AClone( aRet )

...