Difference between revisions of "Managment API SoapUI"
Pavel.lobko (talk | contribs) |
Pavel.lobko (talk | contribs) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Testing Oauth2 authorization with SoapUI}} | {{DISPLAYTITLE:Testing Oauth2 authorization with SoapUI}} | ||
− | We assume that you | + | We assume that you [[Auth_profile_SoapUI|already have set up your SoapUI Auth Profile and obtained Oauth2 token]].<BR> |
+ | Now we can call any Managment API, e.g.[[Management_APIs#STATUS_API|STATUS API]]. That's not much to do:<br> | ||
+ | :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: | ||
+ | <pre> | ||
+ | { | ||
+ | "command":"status", | ||
+ | "gate":"management" | ||
+ | } | ||
+ | </pre> | ||
+ | :and click the green submit button. | ||
<div style="padding-bottom:6px">[[File:Manage-soapui-1.png|500px]]<div> | <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> | <div style="padding-bottom:6px">[[File:Manage-soapui-2.png|800px]]<div> |
Revision as of 20:51, 25 June 2020
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.