The following article shows how to run a yunIO service in SwaggerHub.
SwaggerHub is an OpenAPI design and documentation tool that allows validation of APIs. For more information on the SwaggerHub, see SwaggerHub Documentation.

Prerequisites in yunIO #

  1. Create a service in yunIO. The depicted example uses a Table service with the following settings:
    Table-Extraction
  2. Click run to testrun the service in yunIO (1). For more information, see Online Help: Testing a Service.
  3. Click download-file to download the service definition (2).
    yunio-Services-Function-Download

Loading and Running a yunIO Service in SwaggerHub #

  1. Open SwaggerHub in your browser.
  2. Click Create New > Import and Document API.
    Swagger-Hub-Load-Service-1
  3. Click [Browse] to upload the service definition or paste the URL of the service endpoint into the designated input field.
    Swagger-Hub-Load-Service-2
  4. Click [Import] / [Upload File] to load the service definition.
  5. Open the POST method of the service to access headers and parameter settings.
    We recommend using the POST method with Transport Layer Security (HTTPS) to ensure data protection. Do not use the GET method to send sensible data, e.g., credentials.
    Swagger-Hub-Loaded
  6. Click [Try it out] to pass parameters and credentials and to run the service in Swagger Hub.
    Swagger-Hub-Try
  7. Optional: Edit the parameters in the request body of the service, e.g., change the WHERE clause of the table extraction.
  8. Click [Execute] to run the service.
    Swagger-Hub-Results
  9. If the service requires Basic Authentication, you are prompted to enter your credentials.
  10. The results are displayed in the Response body section of SwaggerHub.