Forum Discussion

JustinM89's avatar
JustinM89
Contributor
8 years ago

REST request with 2 QUERY parameters with same name

I have an endpoint that has two QUERY parameters that use the same name like so:

 

/service/?someId=12345678&queryParam=AA&queryParam=ZZ

However, ReadyAPI will not allow me to use the same QUERY parameter name within the same request. Is there anyway to bypass this without manually building the endpoint via Groovy script?

3 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you please show the raw request to show how the request is being truncated?
  • nmrao's avatar
    nmrao
    Champion Level 3
    Why is it so to have same parameter for multiple times. Is not it overwrite at server side?
    • JustinM89's avatar
      JustinM89
      Contributor

      This endpoint returns a list of fields for each queryParam I give it. So if I send queryParam=AA, my response will contain all of the fields for AA. If I send queryParam=AA&queryParam=ZZ I'll get back the fields for both AA and ZZ