Generate the API clients and resolve issues

While many of the samples come with prebuilt copies of their respective client libraries, it is vital that you also generate and build your own. This ensures that you have fewer issues (such as missing Python packages, missing Maven package) when working with the sample code, and also prepares you for swiftly making your changes to the clients as needed.

Do the following to generate your client using the samples:

  • Load the YAML code into the Swagger Editor: Start by copying the YAML code from the .yaml file in the API folder inside the samples folder and paste the text into your preferred Swagger Editor.
  • Edit the URL in the code: Before you generate any client code, make sure to change the server URL to the address of your OPS server. The address can be modified in the code as it is demonstrated in several samples.
    YAML code
  • Generate and download the client: Click Generate Client at the top-right of the menu and select the preferred language.