Testing Oauth2 authorization with SoapUI

From i2Rest
Revision as of 14:02, 29 June 2020 by Pavel.lobko (talk | contribs) (Pavel.lobko moved page Manage API SoapUI to Managment API SoapUI without leaving a redirect)
Jump to: navigation, search

We assume that you already have set up your SoapUI Auth Profile and obtained Oauth2 token.
Now we can call any Managment API, e.g.STATUS API. That's not much to do:

make sure that value in the "Endpoint" field is equal to Managment gate url in your configuration *.json.
Change request method for POST, then choose or type "application/json" in Media type and provide request body:
{
	"command":"status",
	"gate":"management"
}
and click the green submit button.
Manage-soapui-1.png

Find server responce under the JSON tab:

Manage-soapui-2.png