Retrieve classes

Retrieve all subclasses of a given root class (if no root is provided, the uppermost class in the system is used). It is also possible get a tree-like structure as well as to limit the depth in the classes hierarchy.

URL: /classes

Method: GET

Query Options

Option
Type
Description

root

string

The name of the root class

names

boolean

Use to get only class names

tree

boolean

Use to get a tree-like structure

depth

number

Use to limit the hierarchy depth (only when tree=true)

category

strign

Use to get classes under a given category

Success Responses

Code : 200 OK

Content: [class] where class is defined as:

{
  "name": "string",
  "definition": "string",
  "superclass": "string",
  "comment": "string",
  "category": "string",
  "variable": "boolean",
  "package": "string",
  "modified": "boolean"
}

Where:

  • modified is an optional property indicating whether the class was modified in the current session.

Example 1:: Integer subclasses GET /classes?root=Integer.

Example 2:: Integer hierarchy in the form of tree GET /classes?root=Integer&tree=true.

Last updated