We are currently using a parameter $format. The default is to specify returning JSON. This can be left empty.
If we want to add a notification to server to use a redirect, we have to add this to the $format parameter, but specifically after the JSON entry, which must be placed at start of string.
Is it possible to :
Solved! Go to Solution.
Yes - so -
in the test request to our particular endpoint, there is a parameter $format which specifies response type. Default response type is JSON. This is optional to send in the $format request, but it is required when adding the additional redirect portion to the $format string - e.g. JSON&$redirect
Yes - we can request Application/JSON or XML
for an example of a GET to a Resource -
and currently using parameters to send up the redirect (this was to test using specifically we can redirect via a parameter. in the call)
where we specifically want the XML format and redirect, that parameter becomes
that's what we need to send up to use the optional format and the optional redirect.
Currently, I'm setting that ?$format=&$streamRedirectOptIn in that format parameter, against each test. I'd just like to have a project level parameter that I can apply.
the redirect request is a query parameter.
the format parameter can have no value, JSON, or XML. No value is a default to JSON.
Is the redirect then also possible to be setup as a custom project level property?
All tests were built in ReadyAPI from our imported swagger json.
Thank you, Richie!
@maxrussell were you able to solve this? Please share the solution with us!