Namespace: Consultingwerk.OERA.Swagger
Class 
SwaggerDefinitionGenerator Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.OERA.Swagger.ISwaggerDefinitionGenerator

File:SwaggerDefinitionGenerator
Purpose:Swagger Definition Generation
Author(s):Martyn Kemp / Consultingwerk Ltd.
Created:Fri May 19 08:39:21 BST 2017



Top Method Summary
Options Name Purpose
Progress.Json.ObjectModel.JsonObject AddComponentsSchema (character, handle, IBusinessEntityDescriptor) Returns the Catalog for the Restful Services
Progress.Json.ObjectModel.JsonObject GetCountOperation (character, character, logical) Returns the JSON Count Operation
Progress.Json.ObjectModel.JsonArray GetCountParameters () Returns the JSON Count Parameters Array
Progress.Json.ObjectModel.JsonObject GetDefinitionCount () Returns the JSON Schema Definitions Count for the ProDataset
Progress.Json.ObjectModel.JsonObject GetDefinitions (character, handle, IBusinessEntityDescriptor) Returns the JSON Schema Definitions for the ProDataset
CHARACTER GetFilterDefaultValue () Returns the Filter Default Value
Progress.Json.ObjectModel.JsonObject GetInvokeOperation (character, character, character, character, logical) Returns the JSON Invoke Operation
Progress.Json.ObjectModel.JsonObject GetPathOperation (character, character, character, character, logical, logical) Returns the JSON Path Operation
Progress.Json.ObjectModel.JsonObject GetPathOperations (character, handle, IBusinessEntityDescriptor) Returns the Array of REST Operations for the given Dataset Name
Progress.Json.ObjectModel.JsonObject GetPathParameters (character, character, character) Returns the JSON Path Array
GetProperties (CharacterList, character, character) Adds the serializable properties from the given Serializable type to the list of properties
Progress.Json.ObjectModel.JsonArray GetRelations (handle) Returns the JSON Schema description of the Relations for the ProDataset
Progress.Json.ObjectModel.JsonObject GetSchema (handle, IBusinessEntityDescriptor) Returns the JSON Schema description for the ProDataset
CHARACTER GetService (RestServiceAddress) Returns a Service Instance
Progress.Json.ObjectModel.JsonObject GetSwaggerDefinitionForBusinessEntity (character, RestServiceAddress, character) Returns the Catalog for a given Business Entity
GetSwaggerDefinitionForBusinessEntity (character, RestServiceAddress, character, longchar) Returns the Catalog for a given Business Entity
Progress.Json.ObjectModel.JsonObject GetSwaggerDefinitionForBusinessTask (IBusinessTaskCatalogData, RestServiceAddress, character) Returns the Catalog for a given Business Task
Progress.Json.ObjectModel.JsonObject SetDescription (character) Returns the JSON Description
Progress.Json.ObjectModel.JsonObject SetParameterProperties (character, character) Set parameter properties

Top Property Summary
Options Name Purpose
HANDLE DatasetHandle
CHARACTER EntityName
LOGICAL InvokeMethods


Method Detail
Top

Progress.Json.ObjectModel.JsonObject AddComponentsSchema (character, handle, IBusinessEntityDescriptor)

Purpose: Returns the Catalog for the Restful Services
Notes:

Parameters:
pcEntityName CHARACTER
The Business Entity name
phDataset HANDLE
The Dataset Handle
poBusinessEntityDescriptor Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor
The BusinessEntityDescriptor to use to determine RESTful services
Returns Progress.Json.ObjectModel.JsonObject
The JSON Object containing the Restful Services Operations
Top

Progress.Json.ObjectModel.JsonObject GetCountOperation (character, character, logical)

Purpose: Returns the JSON Count Operation
Notes:

Parameters:
pcEntityname CHARACTER
The Business Entity name
pcDatasetName CHARACTER
The Dataset Name
plFilter LOGICAL
Using Filtering
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject for the Count Operation
Top

Progress.Json.ObjectModel.JsonArray GetCountParameters ()

Purpose: Returns the JSON Count Parameters Array
Notes:

Returns Progress.Json.ObjectModel.JsonArray
The JsonObject for Count Parameters Array
Top

Progress.Json.ObjectModel.JsonObject GetDefinitionCount ()

Purpose: Returns the JSON Schema Definitions Count for the ProDataset
Notes:

Returns Progress.Json.ObjectModel.JsonObject
The JsonObject representing the Definitions Count schema
Top

Progress.Json.ObjectModel.JsonObject GetDefinitions (character, handle, IBusinessEntityDescriptor)

Purpose: Returns the JSON Schema Definitions for the ProDataset
Notes:

Parameters:
pcEntityName CHARACTER
The Business Entity
phDataset HANDLE
The ProDataset to return the schema for
poBusinessEntityDescriptor Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor
The BusinessEntityDescriptor to use to determine RESTful services
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject representing the Schema Definitions
Top

CHARACTER GetFilterDefaultValue ()

Purpose: Returns the Filter Default Value
Notes: Rereading the dataset Schema because THIS-OBJECT:DatasetHandle
contains field "seq" which is being return as the Index

Returns CHARACTER
The Default Filer Value for Filtered paths
Top

Progress.Json.ObjectModel.JsonObject GetInvokeOperation (character, character, character, character, logical)

Purpose: Returns the JSON Invoke Operation
Notes:

Parameters:
pcEntityname CHARACTER
The Business Entity name
pcDatasetName CHARACTER
The Dataset Name
pcMethodName CHARACTER
The Method Name
pcParameterClassName CHARACTER
The parameter class name
plDatasetInput LOGICAL
Using Dataset as Input
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject for the Invoke Operation
Top

Progress.Json.ObjectModel.JsonObject GetPathOperation (character, character, character, character, logical, logical)

Purpose: Returns the JSON Path Operation
Notes:

Parameters:
pcEntityname CHARACTER
The Business Entity name
pcDatasetName CHARACTER
The Dataset Name
pcTableName CHARACTER
The Table Name
pcVerb CHARACTER
The Verb
plConsumes LOGICAL
Consumable
plParameters LOGICAL
Has parameters
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject for the Path Operation
Top

Progress.Json.ObjectModel.JsonObject GetPathOperations (character, handle, IBusinessEntityDescriptor)

Purpose: Returns the Array of REST Operations for the given Dataset Name
Notes:

Parameters:
pcEntityName CHARACTER
The name of the business entity
phDataset HANDLE
The handle of the ProDataset
poBusinessEntityDescriptor Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor
The BusinessEntityDescriptor to use to determine RESTful services
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject representing the operations
Top

Progress.Json.ObjectModel.JsonObject GetPathParameters (character, character, character)

Purpose: Returns the JSON Path Array
Notes:

Parameters:
pcName CHARACTER
Path Node Name
pcSchema CHARACTER
Schema Node Name
pcDescription CHARACTER
Description Node Name
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject for the Paths Array
Top

GetProperties (CharacterList, character, character)

Purpose: Adds the serializable properties from the given
Serializable type to the list of properties
Notes:

Parameters:
poProperties Consultingwerk.Framework.Collections.CharacterList
The CharacterList to add properties to
pcClassName CHARACTER
The JsonSerializable class name
pcPrefix CHARACTER
The prefix to add to the properties
Top

Progress.Json.ObjectModel.JsonArray GetRelations (handle)

Purpose: Returns the JSON Schema description of the Relations for the ProDataset
Notes:

Parameters:
phDataset HANDLE
The ProDataset to return the schema for
Returns Progress.Json.ObjectModel.JsonArray
The JsonObject representing the relations
Top

Progress.Json.ObjectModel.JsonObject GetSchema (handle, IBusinessEntityDescriptor)

Purpose: Returns the JSON Schema description for the ProDataset
Notes:

Parameters:
phDataset HANDLE
The ProDataset to return the schema for
poBusinessEntityDescriptor Consultingwerk.OERA.BusinessEntityDescriptor.IBusinessEntityDescriptor
The BusinessEntityDescriptor to use to determine RESTful services
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject representing the schema
Top

CHARACTER GetService (RestServiceAddress)

Purpose: Returns a Service Instance
Notes:

Parameters:
poAddress Consultingwerk.OERA.JsdoGenericService.RestServiceAddress
The RestServiceAddress to include in the catalog output
Returns CHARACTER
The Service Instance Value
Top

Progress.Json.ObjectModel.JsonObject GetSwaggerDefinitionForBusinessEntity (character, RestServiceAddress, character)

Purpose: Returns the Catalog for a given Business Entity
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
poAddress Consultingwerk.OERA.JsdoGenericService.RestServiceAddress
The RestServiceAddress to include in the catalog output
pcServiceURI CHARACTER
The Service URI
Returns Progress.Json.ObjectModel.JsonObject
The JSON Object describing the Catalog for the Business Entity
Top

GetSwaggerDefinitionForBusinessEntity (character, RestServiceAddress, character, longchar)

Purpose: Returns the Catalog for a given Business Entity
Notes:

Parameters:
pcEntityName CHARACTER
The name of the Business Entity
poAddress Consultingwerk.OERA.JsdoGenericService.RestServiceAddress
The RestServiceAddress to include in the catalog output
pcServiceURI CHARACTER
The Service URI
pcSwaggerDefinition LONGCHAR
OUTPUT The Swagger Annotation Catalog for the Business Entity
Top

Progress.Json.ObjectModel.JsonObject GetSwaggerDefinitionForBusinessTask (IBusinessTaskCatalogData, RestServiceAddress, character)

Purpose: Returns the Catalog for a given Business Task
Notes:

Parameters:
poBusinessTask Consultingwerk.OERA.IBusinessTaskCatalogData
The name of the Business Task
poAddress Consultingwerk.OERA.JsdoGenericService.RestServiceAddress
The RestServiceAddress to include in the catalog output
pcServiceURI CHARACTER
The Service URI
Returns Progress.Json.ObjectModel.JsonObject
The JSON Object describing the Catalog for the Business Task
Top

Progress.Json.ObjectModel.JsonObject SetDescription (character)

Purpose: Returns the JSON Description
Notes:

Parameters:
pcDescription CHARACTER
Description Value for the JsonObject
Returns Progress.Json.ObjectModel.JsonObject
The JsonObject for the Description Node
Top

Progress.Json.ObjectModel.JsonObject SetParameterProperties (character, character)

Purpose: Set parameter properties
Notes:

Parameters:
pcParameterPath CHARACTER
Parameter Path
pcParameterClassName CHARACTER
Parameter Class Name
Returns Progress.Json.ObjectModel.JsonObject
The JSON Object parameter properties for the Parameter Class


Property Detail
Top

HANDLE DatasetHandle


Returns HANDLE
Top

CHARACTER EntityName


Returns CHARACTER
Top

LOGICAL InvokeMethods


Returns LOGICAL


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:22:49