Skip to main content
Version: ADONIS 13/ADOIT 14

Retrieve a list of classes in the metamodel

This article shows how to use the API to get a list of the available classes contained in the metamodel .

The snippet below sends a request to the endpoint /rest/<VERSION>/metamodel/classes and receives as a response a JSON structure containing the list of available classes, each with ID and language-inspecific name.

note

The snippet below uses Basic Authentication.

Replace the values in angle brackets with values that fit your setup, e.g. instead of <HOST> use the host at which you access your ADOXX instance.

Click to view the code!

Source Code

Loading code...

The result should look similar to the following:

Status Code: 200
Result:
{
"rest_links": [ ... ],
"classes": [ ...]
}