Help Center/ ServiceStage/ API Reference/ Historical APIs/ Service Transparent Transmission/ Querying the Software Package List of CodeArts Release Repository
Updated on 2025-11-28 GMT+08:00

Querying the Software Package List of CodeArts Release Repository

Function

This API is used to obtain the software package list of CodeArts release repository.

URI

POST /v1/{project_id}/ss-service/dev-cloud/files

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID. See Obtaining a Project ID.

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

Message body type (format). Default value: application/json;charset=utf8.

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

pageNo

No

Integer

Start page number of the software package to be queried.

pageSize

No

Integer

Number of software packages queried on a page.

projectId

No

String

CodeArts project ID.

If this parameter is not transferred, all CodeArts projects are queried.

If this parameter is transferred, all software packages in the CodeArts project corresponding to this parameter are queried.

Response

Table 4 Response parameters

Parameter

Type

Description

error

String

Error message.

status

String

Status of an obtained file.

result

Object

Software package details. See Table 5.

Table 5 result

Parameter

Type

Description

data

Array of object

Software package list. See Table 6.

totalRecords

Integer

Total number of lists to be queried.

totalPages

Integer

Page number of the list to be queried.

Table 6 data

Parameter

Type

Description

downloadUrl

String

Software package download link.

projectId

String

CodeArts project ID.

Example Request

{
  "projectId": "9ed720e99fe64f32bba84a6d000e5450",
  "pageSize": 5,
  "pageNo": 1
}

Example Response

{
    "result": {
        "data": [
            {
                "projectId": "9ed720e99fe64f32bba84a6d000e5450",
                "downloadUrl": "https://example.com/DevRepoServer/v1/files/download?filename=9ed720e99fe64f32bba84a6d000e5450/demoJavaExample.zip",
            },
            {
                "projectId": "9ed720e99fe64f32bba84a6d000e5450",
                "downloadUrl": "https://example.com/DevRepoServer/v1/files/download?filename=9ed720e99fe64f32bba84a6d000e5450/zip",
            }
        ],
        "totalRecords": 27,
        "totalPages": 6
    },
    "error": null,
    "status": "success"
}

Status Code

Status Code

Description

200

OK

400

Bad Request

Error Code

See ServiceStage Error Codes.