REST Parameter Types

This section describes REST parameter types.

Note

For information on how to configure REST parameters, see the parameter editor description. To learn how to modify the REST request body, see the content editor description.

QUERY

QUERY is the most common parameter type. It is specified at the end of the URL after the question mark (?). You can see it in the path preview at the top of the REST request editor.

QUERY parameters

If you simulate submitting HTML forms, use the POST method and add a query to the message body.

Using the POST method

If this option is selected, ReadyAPI removes the parameter from the path. After you submit a request, you can see the query in the raw request body.

The Raw tab

TEMPLATE (or PATH)

TEMPLATE or PATH parameters are used to parametrize the request path. They add a placeholder populated with values from the specified options:

TEMPLATE parameters

Note

TEMPLATE parameters work only on the resource level. It is possible to specify them on the method level as well, but we do not recommend that you do this. If you define a TEMPLATE parameter on the method level, it will not be automatically appended to the resource path, and you will have to manage it manually.

Known issues

If several resources use the same path with different PATH parameters, ReadyAPI cannot distinguish between them. As a result, you can use only the first resource in the list and cannot switch to another one. This does not affect requests, it affects only the way they are represented in the UI.

MATRIX

MATRIX parameters are added to the resource path before the query string.

MATRIX parameters

Here is how the MATRIX parameter looks like on the Raw request tab.

The Raw tab

PLAIN

PLAIN parameters are defined in a request and can be accessed in ReadyAPI, but are omitted when the request is sent.

PLAIN parameters

When a request is sent, its PLAIN parameter is omitted.

See Also

Publication date: