0

I am developing a server side application (not client). I have a list operation where I am using @GET and I am passing the parameters as @QueryParam. Should I use @FormParam? Will it be helpful while developing the client?

Thiago Negri
  • 5,221
  • 2
  • 28
  • 39
Jay
  • 429
  • 2
  • 8
  • 23

1 Answers1

2

The @FormParam annotation will expect the parameter to be in the body of the request as sent by an HTML form submit.

An HTTP GET should not use a request body. So, keep using @QueryParam for @GET.

See also:

Community
  • 1
  • 1
Thiago Negri
  • 5,221
  • 2
  • 28
  • 39