Parameter Types of REST API in SoapUI

Q

What types of REST API parameters are supported in SoapUI?

✍: FYIcenter.com

A

SoapUI REST projects support the following types of REST API parameters:

1. Query Parameter - Query parameters are parameters encoded in the query string of the final requesting URL. For example, "http://api.example.com/orders/1001?format=xml" contains one query parameter: format=xml.

2. Template Parameter - Template parameters are parameters enbedded in the resource identification part of the final requesting URL. For example, "http://api.example.com//stock/{symbol}/quote" is REST API URL template that has one template parameter: symbol.

3. Header Parameter - Header parameters are parameters included as headers in the final HTTP request. For example, the following HTTP request contains one header parameter: X-Api-Key: DEMO_KEY.

GET https://api.example.com/news HTTP/1.1
X-Api-Key: DEMO_KEY
...

5. Matrix Parameter - Matrix parameters are parameters included in the final requesting URL after the resource path and before the query string. For example, "http://api.example.com/orders/1001;mode=test?format=xml" contains one matrix parameter: mode=test.

 

REST API Resource with Template Parameters

Add New Resource to REST API Service in SoapUI

Testing REST API with SoapUI

⇑⇑ SoapUI Tutorials

2018-03-13, 2648🔥, 0💬