It's time to generate a SDK to simply use Arbitrium in your code. With our solution Arbitrium, we decide to use Swagger. With Swagger, it's easy to generate an Arbritium SDK for any developper that might need it. Let's have a quick tutorial that show you how to generate a SDK.
Go on our API's page and click on Download right next to
Download OpenAPI specification:
Now, go to Swagger editor and copy/paste the OpenAPI specification. You should see our API on the right side of the page.
Now, we can generate a sdk. Click on Generate Client
Select your prgramming languange and use it!
Im your Go project, create a folder named swagger and copy the generated SDK inside it. Your project structure should look like this.
You will need to add a dependency. You can do it by running this command
To use the sdk you will need a swagger configuration and an auth context.
Here's an example of a deployment