Creating API Clients

Using Standard HTTP Requests

Any programming language with support for creating standard HTTP requests may be used to create a client.

Using Swagger Code Generation

To have most of the client code generated in your preferred language you can use swagger codegen. The KvalCAM Web API is defined by a swagger JSON schema file that may be used to generate clients in different languages using a swagger code gen tool. The KvalCAM swagger JSON schema file is available from a KvalCAM host at http://{host_ip}:{port}/rest/api/v1/swagger.json (see swagger codegen for more details). The JSON file may also be pasted into the live swagger editor here to generate client code. Some small modifications may be required to get the code generated for your particular language to work. Examples

Examples can be found in the github repository here.

Accessing Outside the Local Network

KvalCAM uses simple HTTP without encryption for simplicity and ease of use, if you wish to access the KvalCAM host through a public IP address you will need to setup either a VPN or reverse proxy for encrypted traffic and controlled access.

Last Updated: 8/27/2019, 1:42:27 PM