Difference between revisions of "Managment API SoapUI"

From i2Rest
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:Testing Oauth2 authorization with SoapUI}} We assume that you already have Soap UI installed. If not, open source installation package could be found on https:/...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:Testing Oauth2 authorization with SoapUI}}
 
{{DISPLAYTITLE:Testing Oauth2 authorization with SoapUI}}
We assume that you already have Soap UI installed. If not, open source installation package could be found on https://www.soapui.org/downloads/soapui/.<BR>
+
We assume that you [[Auth_profile_SoapUI|already have set up your SoapUI Auth Profile and obtained Oauth2 token]].<BR>
Run SOAP UI, if you alredy have a project, you would like to update with authorization profile - go to it. Otherwise go to File --->  New REST Project. As an example we will create Managment Api call poject. Specify URI to request as follows:<br>
+
Two preparation steps before test [[Management_APIs#STATUS_API|STATUS API]] call:<br>
<pre><Managment Gate URL></pre>
+
:a) Make sure that value in the "Endpoint" field is equal to Managment gate url in your configuration *.json.
where <Managment Gate URL> is the value in your configuration *.json.<br>
+
:b) Change request method for POST, then choose or type "application/json" in Media type and provide request body:
<div style="padding-bottom:6px">[[File:Auth_soapui_1.png]]<div>
+
<pre>
 +
{
 +
"command":"status",
 +
"gate":"management"
 +
}
 +
</pre>
 +
:Click the green button to  submit request.
 +
<div style="padding-bottom:6px">[[File:Manage-soapui-1.png|500px]]<div>
 +
:Find server responce under the JSON tab:<br>
 +
<div style="padding-bottom:6px">[[File:Manage-soapui-2.png|800px]]<div>

Latest revision as of 17:46, 29 June 2020

We assume that you already have set up your SoapUI Auth Profile and obtained Oauth2 token.
Two preparation steps before test STATUS API call:

a) Make sure that value in the "Endpoint" field is equal to Managment gate url in your configuration *.json.
b) Change request method for POST, then choose or type "application/json" in Media type and provide request body:
{
	"command":"status",
	"gate":"management"
}
Click the green button to submit request.
Manage-soapui-1.png
Find server responce under the JSON tab:
Manage-soapui-2.png