This article shows how to run a yunIO service in Swagger Inspector.
Swagger Inspector is an OpenAPI design and documentation tool that allows validation of APIs and automatic creation of OpenAPI files for any end point you call. For more information on the Swagger Inspector, see Swagger Inspector Documentation.
Prerequisites in yunIO #
- Create a service in yunIO. This example uses a Table service with the following settings:
- Copy the URL of the service definition ( icon) or download the service definition ( icon).
Loading a yunIO Service into Swagger Inspector #
- Open Swagger Inspector in your browser.
- Navigate to the Definition menu (1). There are 2 ways to load a yunIO service definition into the swagger inspector:
- Paste the URL of the service definition into the designated input field (2).
- Click on the upload icon to load a service definition from your harddrive (2).
- Click [PARSE] to analyze the service definition (3).
- Once the service is parsed, click on the service (4) to access any authentication, headers and parameter settings of the service.
Tip: If you don’t have any authentication, headers, or parameters to add to the service, paste the URL of your yunIO service endpoint directly into the main URI input line. Select POST from the method drop-down list and click [Send] to execute the service.
Parameterizing the Service #
All parameters defined in yunIO are accessible in the request body of the service.
To set parameters, edit the Body, e.g. change the WHERE clause of the table extraction.
Running the Service #
Note: If the option Request credentials from callers when running services is active in the connection settings in yunIO, you have to select Basic Authentication in the Authentication & Headers tab of Swagger Insector and enter your SAP credentials before running the service.
After parsing the service definition, the URL of the service endpoint should be available in the main URI input line.
If not, enter the URL and select the POST method.
Click [Send] to execute the service.
The results are displayed in the Response section of Swagger Inspector.