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 :
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 -
/rest/data/beta/ourendpoint/views
and currently using parameters to send up the redirect (this was to test using specifically we can redirect via a parameter. in the call)
?$format=&$streamRedirectOptIn
where we specifically want the XML format and redirect, that parameter becomes
?$format=XML&$streamRedirectOptIn
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!
User | Count |
---|---|
6 | |
6 | |
4 | |
2 | |
1 |
Subject | Author | Latest Post |
---|---|---|