---
title: "list classes"
method: GET
path: "/api/workspaces/{workspaceName}/schemas/{schemaName}/classes"
tags: ["graph"]
---

# list classes

`GET /api/workspaces/{workspaceName}/schemas/{schemaName}/classes`

## Request

- The document declares no server URL.
- Auth: none declared

Get a list containing all classes. Doesn't include: stereotypes, attributes and associations.

## Path parameters

- `workspaceName` string, required
- `schemaName` string, required

## Query parameters

- `includeExternalClasses` boolean

## Headers

- `Origin` string

## Response `200`

OK

- ClassUMLAdaptedDTO[]
  - `associationPairs` AssociationPairDTO[]
    - `from` AssociationDTO
      - `associationUsed` boolean
      - `comment` string
      - `domain` string
      - `label` string
      - `multiplicity` string
      - `prefix` string
      - `range` DataTypeDTO
        - `label` string
        - `prefix` string
        - `type` 'PRIMITIVE' | 'RANGE' | 'UNKNOWN'
      - `uuid` string, uuid
    - `to` AssociationDTO
      - `associationUsed` boolean
      - `comment` string
      - `domain` string
      - `label` string
      - `multiplicity` string
      - `prefix` string
      - `range` DataTypeDTO
        - `label` string
        - `prefix` string
        - `type` 'PRIMITIVE' | 'RANGE' | 'UNKNOWN'
      - `uuid` string, uuid
  - `attributes` AttributeDTO[]
    - `comment` string
    - `dataType` DataTypeDTO
      - `label` string
      - `prefix` string
      - `type` 'PRIMITIVE' | 'RANGE' | 'UNKNOWN'
    - `defaultValue` string
    - `domain` string
    - `fixedValue` string
    - `label` string
    - `multiplicity` string
    - `prefix` string
    - `stereotypes` string[]
    - `uuid` string, uuid
  - `comment` string
  - `enumEntries` EnumEntryDTO[]
    - `comment` string
    - `label` string
    - `prefix` string
    - `stereotype` string
    - `type` string
    - `uuid` string, uuid
  - `external` boolean
  - `label` string
  - `package` BelongsToCategoryDTO
    - `label` string
    - `prefix` string
    - `uuid` string, uuid
  - `prefix` string
  - `stereotypes` string[]
  - `superClass` ClassUMLAdaptedDTO (recursive)
  - `uuid` string, uuid

## Changes

- **2026-11-23** `91d142ef001a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/workspaces/:workspaceName/schemas/:schemaName/classes/get.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
