Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (54 sloc) 4.89 KB


Java Class Library for CLS REST API

Welcome to the Java Class Library for the CLS REST API. The CLS REST API is hosted on, and this class library provides you with a Java interface to access that API. If you have questions, or would like to provide feedback and/or to report a bug, feel free to contact the author, Ken Lowrie, at


Attributions here...


Layout of this Project

This project was built using NetBeans, and the source tree is a reflection of that. If you don't have/use NetBeans, it should be easy enough to integrate into whatever your particular Java environment happens to be (hopefully). Please review this documentation to get a better understanding of what's here, especially if you plan on using something other than NetBeans to consume it.

This project consists of two packages:

  1. clsrestapi package - this is the Java class library for the CLS REST API
  2. test/clsrestapi package - this is a set of JUNIT test classes for the clsrestapi package

clsrestapi Package

The clsrestapi Package provides a set of classes for Java developers to use for accessing the CLS REST API.

The test/clsrestapi JUNIT test classes

These are JUNIT v4 tests integrated into the NetBeans project, and are executed like any other JUNIT test inside the NetBeans IDE. Refer to their documentation for more details on that. These tests exercise the underlying class library to ensure it is working properly.

Why a REST API for the Cloudy Logic App?

This section is probably best explained by simply reviewing the server side documentation for CLS REST. The source code and documentation for this is available in this GitHub repository.

The clsrestapi Java Package

The CLS REST API server side is written in PHP, and uses JSON encoding to expose the data associated with each API call. The clsrestapi Java Package contains a set of classes that expose the server APIs to Java clients. The available classes are:

  1. clsrestapi.Versions - Returns the versions of a specific (or all) API(s).
  2. clsrestapi.AboutUs - Returns a text description of what Cloudy Logic Studios does.
  3. clsrestapi.ContactInfo - Returns contact information for Cloudy Logic.
  4. clsrestapi.Reels - Returns information about demo reels including a streaming URL for each demo reel.
  5. clsrestapi.OurWork - Returns information about select video projects that showcase the company.

The API relies on Google's Gson 2.8.1 library, and also relies on Java's built-in URL class. Everything thing else is built using the Java v8 built-in libraries.

Each high-level class in the library has three (3) objects contained within it:

  1. DbgObj() - Some debugging information about the API call
  2. ApiVer() - The version related information abou the API call
  3. ApiObj() - This object is API-specific; that is, each API defines a custom object to hold information related to that call.

clsrestapi.DbgObj Class

The DbgObj class is common to all API calls, and contains information about the network request.

clsrestapi.ApiVer Class

The ApiVer class is common to all API calls, and contains information about the version of the API, as well as the data version returned by the call.

clsrestapi.Versions Class

This class is used to determine the version number of a specific API or all APIs.

clsrestapi.AboutUs Class

This class is used to return some general information about Cloudy Logic.

clsrestapi.ContactInfo Class

This class is used to obtain the contact information for Cloudy Logic, including the various social networks that the business maintains a presence on.

clsrestapi.Reels Class

This class is used to obtain information about demo reels that the company has produced. It can return all demo reels, or a specific one, depending on how it is called.

clsrestapi.OurWork Class

This class is used to obtain information on showcase videos that highlight what the company has done in the past. It can the details for a specific showcase video, or all videos currently being promoted by the company.


The clsrestapi package contains full Javadocs for the API, and you are encouraged to use that to learn more about each specific API. This README file is not intended to replace the API documentation, so you need to review that for more detailed information about using the API.


This concludes a summary of the Java class library for the CLS REST API.

You can’t perform that action at this time.