Updated on 2022-09-15 GMT+08:00

Obtaining Subject Levels

Function

This API is used to obtain subject levels.

URI

GET /v2/{project_id}/design/subject-levels

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

levels

Array of CatalogLevelVO objects

Subject level information

Table 3 CatalogLevelVO

Parameter

Type

Description

id

Long

No.

level

Integer

Level

name_ch

String

Chinese name

name_en

String

English name

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Example Requests

None

Example Responses

Status code: 200

The operation succeeds. The subject level list is returned.

{
  "levels" : [ {
    "id" : "873154228410097664",
    "level" : 1,
    "name_ch" : "Subject area group",
    "name_en" : "Business Domain Group"
  }, {
    "id" : "873154228414291968",
    "level" : 2,
    "name_ch" : "Subject area",
    "name_en" : "Business Domain"
  }, {
    "id" : "873154228414291969",
    "level" : 3,
    "name_ch" : "Business object",
    "name_en" : "Business Object"
  } ]
}

Status Codes

Status Code

Description

200

The operation succeeds. The subject level list is returned.

400

BadRequest

401

Unauthorized

403

Forbidden

404

Not Found