Obtaining All Directories
Function
This API is used to obtain all directories.
URI
GET /v2/{project_id}/design/directorys
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Project ID  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        type  | 
      
        Yes  | 
      
        String  | 
      
        Obtains the data in the directory and the data in all subdirectories (if there are any). Enumeration values: 
  | 
     
Request Parameters
None
Response Parameters
Status code: 200
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        name  | 
      
        String  | 
      
        Name  | 
     
| 
        description  | 
      
        String  | 
      
        Description  | 
     
| 
        type  | 
      
        String  | 
      
        Directory type Enumeration values: 
  | 
     
| 
        id  | 
      
        Long  | 
      
        ID  | 
     
| 
        parent_id  | 
      
        Long  | 
      
        Parent directory ID. The root node does not have this ID.  | 
     
| 
        prev_id  | 
      
        Long  | 
      
        ID of the previous node. The first node does not have this ID.  | 
     
| 
        root_id  | 
      
        Long  | 
      
        Root node ID  | 
     
| 
        qualified_name  | 
      
        String  | 
      
        Directory  | 
     
| 
        create_time  | 
      
        String  | 
      
        Creation time  | 
     
| 
        update_time  | 
      
        String  | 
      
        Update time  | 
     
| 
        create_by  | 
      
        String  | 
      
        Creator  | 
     
| 
        update_by  | 
      
        String  | 
      
        User who updated the directory  | 
     
| 
        children  | 
      
        Array of DirectoryVO objects  | 
      
        Subdirectory  | 
     
Status code: 400
| 
        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
| 
        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
| 
        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. Catalogs with subcatalogs are returned.
[ {
  "name" : "db",
  "description" : "db",
  "type" : "db",
  "id" : "db",
  "parent_id" : "db",
  "prev_id" : "db",
  "root_id" : "db",
  "qualified_name" : "qname",
  "tenant_id" : "tid",
  "create_time" : 1111,
  "update_time" : 2222,
  "create_by" : "test",
  "update_by" : "test",
  "children" : [ {
    "name" : "child",
    "description" : "db",
    "xxxx" : "Other attributes",
    "children" : [ {
      "name" : "child_of_child",
      "xxxx" : "Other attributes"
    } ]
  } ]
} ]
 Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        The operation succeeds. Catalogs with subcatalogs are returned.  | 
     
| 
        400  | 
      
        BadRequest  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
| 
        403  | 
      
        Forbidden  | 
     
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.