Como listar os parâmetros de minha API #388
AlexhaifaGarcia
started this conversation in
General
Replies: 2 comments 1 reply
-
Boa tarde. Você poderia fazer algo assim por exemplo var
LNome: string;
LValor: string;
begin
for LNome in Req.Query.Dictionary.Keys do
begin
LValor := Request.Query.Field(LNome).AsString;
//
end; |
Beta Was this translation helpful? Give feedback.
1 reply
-
Olá Gabriel, deu certo. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Boa Tarde,
Analisando o Req.Query do horse, eu tenho a opção de Req.Query.Count que me informa a quantidade de parâmetros que chegou na minha API, porém não encontrei uma forma onde eu poderia fazer um for para pegar os nomes dos parâmetros por index, tipo:
var
i : integer;
Begin
for i := 0 to Pred( Req.Query.Count ) do
Begin
End;
End;
Poderia me dar alguma dica?
Obrigado
Beta Was this translation helpful? Give feedback.
All reactions