Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adding the Swagger file

Follow the steps below to add the underlying Swagger file of then sample publicly available live REST Service that we use in this guide, to WSO2 G-Reg. For more information on adding a REST Service to WSO2 G-Reg, see Adding a REST Service.

  1. Log in to the G-Reg Publisher using the following URL and admin/admin credentials: https://<G-REG_HOST>:<G-REG_PORT>/publisher
  2. Click the main menu button of the G-Reg Publisher, and then click Swaggers as shown below.
    select Swaggers from the main menu
  3. Click the following ADD button: 
  4. Select Upload Swagger from a file as shown below.
    select the option to upload a file
  5. Click Browse to select the Swagger file to upload it, and then specify its version as shown below. 
    enter details of the Swagger file
  6. Click Create.
  7. Refresh the screen to view the new Swagger artifact you added as shown below.
  8. Anchor
    artifact
    artifact

    added Swagger asset

...

Follow the steps below to view how the added REST Service, Swagger, and Endpoint are created and linked together using the provided dependency view. For more information on viewing dependencies between assets, see Viewing Dependencies of Artifacts.

  1. Click the Swagger artifact which you created above.
  2. Click the following Show Dependency button:Show Dependency button
    You view the dependencies of the selected artifact as shown below.
    view dependencies

...