Warning: Deprecated articles
You are using the old version of the knowledge base for yunIO.
Make sure to use the samples within the new HelpCenter for yunIO.

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:
  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).

Loading and Running a yunIO Service in SwaggerHub #

  1. Open SwaggerHub in your browser.
  2. Click Create New > Import and Document API.
  3. Click [Browse] to upload the service definition or paste the URL of the service endpoint into the designated input field.
  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.
  6. Click [Try it out] to pass parameters and credentials and to run the service in Swagger Hub.
  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.
  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.