Skip navigation links

Package jsondiscoverer

Main classes for the JSON discoverer.

See: Description

Package jsondiscoverer Description

Main classes for the JSON discoverer.

The main classes included in this package are shown in the figure below. The pacakge defines a set of classes to represent JSON documents (see AbstractJsonSource hierarchy) returned by JSON-based Web services. They are called JSON sources and range from single JSON documents (i.e., SingleJsonSource) to a set of them (i.e., JsonSourceSet).

JSON sources can also define the input of the service (i.e., withInput) if it is given as a JSON document. The parsing and management of JSON data is performed by using the GSON library.

The main functionalities provided by the tool are implemented in their corresponding classes. The simple discoverer is implemented by the classes JsonSimpleDiscoverer and JsonInjector, which provide the discovery of the schema and the data model, respectively. The advanced discoverer is implemented by the classes JsonAdvancedDiscoverer. Finally, the API composer is implemented by the class JsonComposer.

Other classes not included in the Figure for the sake of simplicity are in charge of managing the coverage information, the management of models (i.e., loading and saving) and the sequence diagram generator.

Our solution leverages on the modeling technology to represent the API schemas and the data models. In particular, the tool uses the Eclipse Modeling Framework (EMF).

Architecture of the tool
Skip navigation links