Create a connection
Log in a Swagger UI instance
Before you can set up a connection, you need to login a Swagger UI instance first. In practice, data managers will need to log in the Production Swagger UI of their respective crops before a connection can be made. For demonstration purposes, we will be using the UAT Swagger UI instance below.
Load the UAT Swagger UI instance in an internet browser by using this link.
To begin your login process, click the Authorize button indicated by an open padlock .
3. A modal window will be shown. In the Value field, you need to enter a token.
4. Generate a token by entering this URL in a new browser: https://cbapi-uat.ebsproject.org/v3/docs/auth/login
“/auth/login” indicates that you aim to generate a token for login purposes using your organizational email address.
5. The browser will ask you to log in using your organizational email address. Click the one that applies to you.
Sign in with your organizational email address if you haven’t signed in your current browser yet.
6. The token will be shown after the page loads. Copy the entire token.
7. After pasting the token in the Value field, click Authorize.
8. Your login is confirmed when the word “Authorized” is displayed in the modal window.
9. Upon closing the modal window, the right-most button should now display a secure padlock. You can now use the UAT Swagger instance APIs to create your connection. You can browse different API calls and connect these to your printout templates or reports.
Create a connection
In the Printout tool, click Connections.
2. On the main browser, click New Connection.
3. The Create Data Source Connection modal window will appear. You only need to fill-out the general details and the Query Parameters section to create a connection.
The Data Source URi follows this input format: Server Value/API for specific data
4. Once you are done, click Test Connection.
5. You will be notified by a confirmation message once the connection is working successfully.
Great job! You now have a successfully created template and a working connection. Next up is designing the template!