How to pass more than one parameter in REST DEBUGGER

Asked

Viewed 148 times

0

Good afternoon..
I created a Rest Server -> File -> Others -> Delphi Projects -> Datasnap Server -> Datasnap REST Application.

In Unit Servermethods I created a Function..:

Autentica_Usuario (pLogin , pSenha : String) : TJsonArray;
  Var
   login , Senha : String;
begin
   Login := pLogin;
   Senha := pSenha;
end;

When I go to Restdebuger in the PARAMETERS TAB and put usuari1,password1 when debugging, the pIt parameter is coming with 'user1,password1' and pIt is coming empty.
How to pass more than one parameter in the REST DEBUGER PARAMETERS TAB???

  • In this tab there are Add/Edit/Delete buttons of parameters not?

  • Good afternoon @Tiago Rodrigues ... all right.. Cara ter tem.. I tried to use and it didn’t work. It may be that my function is not done CORRECTLY to be used by the above buttons. But if the function was WRONG , when I call the View Broser and call the function, appears TWO fields to enter the necessary values (login and password) and when RUN the function works perfectly. :)

  • I know I’ve had that problem too but I honestly can’t remember how I solved it :/

1 answer

0

Good afternoon. Resolved as followsinserir a descrição da imagem aqui

1 - In the ABA Request the address to where the Servermethod is
2 - In the PARAMETERS TAB is placed the Method called more BAR more PARAMETER more BAR more PARAMETER
Example..: Login/Usuariox/Senhay

3 - Expected Result appears correctly :)

In case any of you have anything to say, I’m all eyes. :)
As it is the first time that I make a REST server , I believe that probably has a way "CORRECT" to do the function and pass the parameters.
Hug to all :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.