Updated on 2025-03-25 GMT+08:00

Favoriting a Microservice

Function

This API is used to favorite a microservice.

Calling Method

For details, see Calling APIs.

URI

PUT /v2/{cloudProjectId}/component/{componentId}/follow

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

cloudProjectId

Yes

String

Project ID.

componentId

Yes

String

Microservice ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

-

String

Whether the request is successful.

Example Requests

GET https://{endpoint}/v2/2d09f712e9504b61b034cc8f40e475a8/component/f7ced2341b204d2b82c607c6f0de5b4a/follow

Example Responses

Status code: 200

Microservice ID.

f7ced2341b204d2b82c607c6f0de5b4a

Status Codes

Status Code

Description

200

Microservice ID.

Error Codes

See Error Codes.