Swagger or no Swagger LightWave Client lets you create REST APIs in minutes

📅 Jan 4, 2023
Phil Ly Phil Ly
LightWave Client REST APIs Swagger
API Chart

RESTful API opens up NonStop by enabling its applications to interoperate with services within the enterprise, in the cloud or anywhere on the Internet. LightWave Client™ from our partner NuWave Technologies is the most popular REST client product to run on NonStop. It enables you to create NonStop applications to consume remote RESTful Web Services in minutes.

LightWave Client Chart

There are many factors that attribute to its success, including a browser-based GUI dashboard, its high performance, extensive diagnostic logging, etc. In addition, one outstanding feature is the ease of configuring and managing API definitions.

Swagger Banner

Swagger

Swagger allows the RESTful Web Service developer to describe the structure of their APIs so that the REST Client knows how to call them. The ability of APIs to describe their own structure is the root of all benefits in Swagger. This file is essentially a resource listing of your API which adheres to OpenAPI Specification. The specification asks you to include information like:

Swagger File

A Swagger file for a RESTful service greatly facilitates the job of the REST Client program developer because it enables the creation of the methods and operations more easily. LightWave Client™ supports the use of Swagger in defining the APIs to consume the RESTful web service.

Swagger Support in LightWave Client – Point and Click

With LightWave Client™, you can create an API to consume the remote RESTful service instantly by importing its Swagger file. This can be done via a point-and-click operation.

Swagger Support LightWave Client Import API from Swagger OpenAPI

Once the Swagger has been imported, LightWave Client™ will generate a schema with all the methods and operations as defined in the Swagger file. And the API is done!

LightWave Client™ also provides a feature that allows you to customize some of the schema attributes, like field size, array size, etc. to fit your application environment.

Schema Editor

What if there is no Swagger?

The reality is that not every RESTful web service provider supplies a Swagger. This presents a potential problem to some other REST Client products on NonStop which require that you must have a Swagger file for it to work. If you don't have it, then you are stuck. You will need to "make up" (create) one manually. It can be a tedious process that is prone to incompleteness and errors.

LightWave Client – Schema By Example

This is not an issue for LightWave Client™. No need to fumble around trying to create a Swagger manually. With LightWave Client™, all you need is a sample Request and Response. Then you can take advantage of the product's "Schema By Example" feature. As the name implies, LightWave Client™ will use the sample that you provide as an example to build a schema to be used for creating the request and response necessary to access the remote API.

When you use the LightWave Client™ GUI Dashboard to create the API definition, one of the options is "Add By Example."

LightWave Client GUI Dashboard

Paste in a sample Request or Response, and LightWave Client™ will process it accordingly.

Schema Type by Example

Once the request and the response definitions are imported via the Example, you can optionally edit the schema to fit your application needs.

That's it: your API definition is now complete by using LightWave Client's™ Schema By Example feature.

For more information about LightWave Client™, visit TIC Software or NuWave Technologies website.

← Back to Blog

Feedback Please


Phil Ly

Phil Ly is the president of TIC Software, a leading provider of software and services for the NonStop community focused on NonStop application modernization. Under Phil's guidance, TIC Software has a proven track record of helping clients seamlessly integrate NonStop with next-generation technologies. A recognized technical leader, Phil is passionate about empowering organizations to unlock the full potential and longevity of their NonStop platform through innovative solutions.